Skip to main content
A newer version of this page is available. .
All docs
V22.1

CustomTextMaskInputArgs.CurrentSelectionStart Property

Returns the zero-based index of the left-most character of the current selection.

Namespace: DevExpress.Data.Mask

Assembly: DevExpress.Data.v22.1.dll

NuGet Package: DevExpress.Data

Declaration

public int CurrentSelectionStart { get; }

Property Value

Type Description
Int32

The zero-based index of the right-most character of the current selection.

Remarks

The figure below illustrates how CurrentSelectedText, CurrentSelectionStart, CurrentSelectionEnd, and CurrentSelectionAnchor properties are interconnected.

Selection and Anchors

If no text is currently selected, CurrentSelectionStart, CurrentSelectionEnd, and CurrentSelectionAnchor properties have the same value that matches the CurrentCursorPosition property value.

See Also