Skip to main content
All docs
V24.1

CustomTextMaskInputArgs.CurrentSelectionEnd Property

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

Namespace: DevExpress.Data.Mask

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public int CurrentSelectionEnd { 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