officefileapi-devexpress-dot-xtrarichedit-dot-richeditdocumentserver-62804a31.md
Gets or sets the plain text content of the document.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public string Text { get; set; }
Public Property Text As String
| Type | Description |
|---|---|
| String |
A string, containing the document’s unformatted text.
|
The SubDocument.GetText method allows you to retrieve the specified range in plain text format. Use the Document.Text property to retrieve the document’s unformatted content.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-grid-richedit-highlight-search-results/CS/E4422/Form1.cs#L26
server.RtfText = e.DisplayText;
e.DisplayText = server.Text;
}
winforms-grid-richedit-highlight-search-results/VB/E4422/Form1.vb#L25
server.RtfText = e.DisplayText
e.DisplayText = server.Text
End If
See Also