Back to Devexpress

TdxRichEditCustomDocumentServer.Text Property

vcl-dxrichedit-dot-documentserver-dot-tdxricheditcustomdocumentserver-64663e66.md

latest3.5 KB
Original Source

TdxRichEditCustomDocumentServer.Text Property

Specifies document content (as a plain text string).

Declaration

delphi
property Text: string read; write;

Property Value

TypeDescription
string

Document content (as a plain text string).

|

Remarks

You can use the Text property to import/export document content in the plain text format (TXT). Unlike all other formats, support for TXT is initially enabled for the TdxRichEditDocumentServer component.

Internal Document Model and Import/Export Operations

Important

The TdxRichEditDocumentServer component does not work natively with documents in the TXT format. Instead, the component builds a document model in memory using an internal XML-like format. You can edit the current document directly using API members accessible through the Document property.

The Text property value’s read/write operations import/export document content. You can use the following properties to configure plain text import/export settings:

Options.Export.PlainTextProvides access to settings applied to exporting a document to the TXT file format.Options.Import.PlainTextProvides access to settings applied to importing plain text (TXT) documents into the Rich Edit control.

Other Document Import/Export Options

You can also use the following API members to import/export document content in different supported[1] formats:

DocBytesSpecifies document content as a byte array (in the Microsoft Word® 97 – 2003 binary format).HtmlTextSpecifies document content as a string (in the HTML format).OpenXmlBytesSpecifies document content as a byte array (in the Office OpenXML format).RtfTextSpecifies document content (as an RTF string).LoadDocument | LoadDocumentTemplate | SaveDocumentExport/import document content to/from file or stream in any supported format.

Footnotes

  1. Ensure that support for all required document formats is enabled; otherwise, an exception occurs.
    Refer to corresponding API member descriptions for detailed information on support for different document formats.

See Also

IdxRichEditDocument.Text Property

Document Print and Import/Export

TdxRichEditCustomDocumentServer Class

TdxRichEditCustomDocumentServer Members

dxRichEdit.DocumentServer Unit