Back to Devexpress

RichEditDocumentServer.Text Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditdocumentserver-62804a31.md

latest2.7 KB
Original Source

RichEditDocumentServer.Text Property

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

Declaration

csharp
public string Text { get; set; }
vb
Public Property Text As String

Property Value

TypeDescription
String

A string, containing the document’s unformatted text.

|

Remarks

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

csharp
server.RtfText = e.DisplayText;
    e.DisplayText = server.Text;
}

winforms-grid-richedit-highlight-search-results/VB/E4422/Form1.vb#L25

vb
server.RtfText = e.DisplayText
    e.DisplayText = server.Text
End If

Implements

Text

See Also

RichEditDocumentServer Class

RichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace