Back to Devexpress

TextEdit.SelectionLength Property

wpf-devexpress-dot-xpf-dot-editors-dot-textedit-f8a26d38.md

latest1.5 KB
Original Source

TextEdit.SelectionLength Property

Gets or sets the number of selected characters.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Property Value

TypeDescription
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

TextEdit Class

TextEdit Members

DevExpress.Xpf.Editors Namespace