Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditControl.Text Property

Gets or sets the control’s content as a plain text.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v24.1.dll

NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.RichEdit, DevExpress.Win.TreeMap

#Declaration

public override string Text { get; set; }

#Property Value

Type Description
String

A string, containing the document’s unformatted text.

#Remarks

Use the Text property to get the plain text displayed in the RichEditControl.

richEditControl.Text = "Item 1\r\nItem 2\r\nItem 3\r\nItem 4\r\n";

The RichEditControl.ContentChanged event fires when the document is loaded using the Text property.

Check the Text property value in the RichEditControl.DocumentLoaded event handler, i.e., when the document is fully loaded.

Use the following properties to retrieve text in other formats:

The following code snippets (auto-collected from DevExpress Examples) contain references 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.

See Also