Document.Selection Property
In This Article
Gets or sets the selected range in the document.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v14.2.Core.dll
#Declaration
#Property Value
Type | Description |
---|---|
Document |
A Document |
#Remarks
Use the Document.Copy, Document.Cut and Document.Paste methods without parameters to work with a selection in the document.
The DocumentRange.Start and DocumentRange.End properties of the Selection provides you with the positions which represent the selection's start and end.
Use the SubDocument.GetText method to obtain the plain text contained in the selection.
See Also