TextEdit.SelectionLength Property

Gets or sets the number of selected characters.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

[Browsable(false)]
public int SelectionLength { get; set; }
<Browsable(False)>
Public Property SelectionLength As Integer

Property Value

Type Description
Int32

An integer value that specifies the number of selected characters.

Remarks

The SelectionLength property returns the number of characters in the current selection. Setting this property to a new value adjusts the length of the current selection to the specified value, keeping the beginning of the selection fixed.

To select the text, use the TextEdit.Select method. All text can be selected using the TextEditBase.SelectAll method.

See Also