The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Document.Selections Property

Provides access to a collection of selections in the document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

SelectionCollection Selections { get; }
ReadOnly Property Selections As SelectionCollection
SelectionCollection Selections { get; }
ReadOnly Property Selections As SelectionCollection

Property Value

Type Description
SelectionCollection

A SelectionCollection object containing ranges selected in the document.

Property Value

Type Description
SelectionCollection

A SelectionCollection object containing ranges selected in the document.

Examples

document.LoadDocument("SelectionCollection.docx", DocumentFormat.OpenXml)
Dim startPos As Integer = 80
Dim endPos As Integer = document.Tables(0).Rows(1).LastCell.ContentRange.Start.ToInt()
Dim myRange As DocumentRange = document.CreateRange(startPos, endPos - startPos)
document.Selections.Add(myRange)
See Also