Skip to main content
All docs
V25.1
  • CustomTextMaskInputArgs.CurrentSelectionAnchor Property

    Returns a value of either the CurrentSelectionStart (if a user selected a portion of editor text from left to right) or CurrentSelectionEnd (from right to left) property.

    Namespace: DevExpress.Data.Mask

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public int CurrentSelectionAnchor { get; }

    Property Value

    Type Description
    Int32

    The zero-based position from which a user selected a portion of the editor text.

    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