Skip to main content

TextEditBase.SelectionLength Property

Gets the number of selected characters.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public int SelectionLength { get; set; }

Property Value

Type Description
Int32

The number of selected characters.

Remarks

Use the following properties to manage the cursor position and text selection:

Property

Description

CursorPosition

Gets or sets the cursor position.

SelectionStart

Gets a character index at which the selection starts.

SelectionLength

Gets the number of selected characters.

You can also use the SelectAll(), SetSelection(Int32), and SetSelection(Int32, Int32) methods to select text.

See Also