Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomMaskEventArgs.CurrentSelectionStart Property

Gets the position of the left-most selected character.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public int CurrentSelectionStart { get; }

#Property Value

Type Description
Int32

The position of the left-most selected character.

#Remarks

The following image shows values of the CurrentSelectedText, CurrentSelectionStart, CurrentSelectionEnd, and CurrentSelectionAnchor properties:

CustomMask Event - Text Selection

If the editor does not contain selected text, the CurrentSelectionStart, CurrentSelectionEnd, and CurrentSelectionAnchor properties return the CurrentCursorPosition property value.

See Also