vcl-dxrichedit-dot-documentserver-dot-tdxricheditcustomdocumentserver-64663e66.md
Specifies document content (as a plain text string).
property Text: string read; write;
| Type | Description |
|---|---|
| string |
Document content (as a plain text string).
|
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.
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.
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
See Also
IdxRichEditDocument.Text Property
Document Print and Import/Export
TdxRichEditCustomDocumentServer Class