Skip to main content

RichEditControl.Text Property

Gets or sets the plain text content of the control.

Namespace: DevExpress.Xpf.RichEdit

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


public string Text { get; set; }

Property Value

Type Description

A string, containing the document’s unformatted text.


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:


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.

See Also