Gets or sets the document’s text (plain text).
NuGet Package: DevExpress.RichEdit.Core
A string value that specifies the text of the document.
The text is displayed using default formatting (or the text formatting specified via the RichEditAppearance.Text property).
Assigning a value to this property results in a new loaded document that is imported from the plain text format. So, all appropriate events are fired in this case. If you want to just clear the text of an existing document, use the SubDocument.Delete method with a SubDocument.Range as a parameter. This technique will not reset document properties. To wipe off the trace of this operation so it can not be undone, use the RichEditControl.ClearUndo method, as follows:
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text property.
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.