.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SelectionCollection.RemoveAt(Int32) Method

Deletes a selection specified by its index.

Namespace: DevExpress.XtraRichEdit.API.Native

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


public void RemoveAt(
    int index


Name Type Description
index Int32

An integer that is the zero-based index of a selection to delete.


document.LoadDocument("SelectionCollection.docx", DocumentFormat.OpenXml)
Dim range1 As DocumentRange = document.CreateRange(80, 100)
Dim range2 As DocumentRange = document.CreateRange(300, 100)
Dim startPos3 As Integer = document.Tables(0).Rows(0).LastCell.ContentRange.Start.ToInt()
Dim range3 As DocumentRange = document.CreateRange(startPos3, 100)
Dim range4 As DocumentRange = document.CreateRange(720, 100)
document.Selections.Add(New List(Of DocumentRange)() From {range1, range2, range3, range4})
See Also