RichEditControl.Text Property

Gets or sets the plain text content of the control.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v20.1.dll

Declaration

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

Property Value

Type Description
String

A string, containing the document's unformatted text.

Remarks

Use the SubDocument.Delete method with a SubDocument.Range as a parameter to clear the text of an existing document. This technique does not reset document properties. Use the RichEditControl.ClearUndo method to wipe off this operation's trace so it cannot be undone, as follows:

richEdit.Document.Delete(richEdit.Document.Range);
richEdit.ClearUndo();

Assigning the Text property value results in a new loaded document that is imported from the plain text format. Check the Text property value when the RichEditControl.DocumentLoaded event handler, i.e. when the document is fully loaded.

Implements

See Also