Skip to main content

RichEditControl.Selection Property

Gets the plain text contained in the selected area of the document.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v14.2.dll

#Declaration

public string Selection { get; }

#Property Value

Type Description
String

A string containing the plain text of the selection.

#Remarks

To retrieve formatted text, use the RichEditControl.SelectionRTF property.

The entire text of the document is available via the RichEditControl.Text (plain) and RichEditControl.RtfText (formatted) properties.

See Also