Skip to main content
All docs
V24.2

CustomTextMaskInputArgs Properties

Exposes an API that allows you to create custom masks.
Name Description
ActionType Returns the action a user has performed: entered one or multiple characters (Insert), erased characters (Backspace or Delete), clicked a spin button (SpinUp, SpinDown). ActionType.Init is returned when a form is initialized, a custom mask is applied, or an editor gains or loses focus.
CurrentCursorPosition Returns the zero-based cursor position. To obtain text blocks before and after this position, use the CurrentHead and CurrentTail properties.
CurrentEditText Returns the current editor text. This property is different from ResultEditText, which returns the editor text if user edits are accepted.
CurrentHead Returns the current editor text that precedes the cursor position or selected text.
CurrentSelectedText Returns the currently selected editor text. To obtain the zero-based position of the first and last characters of a selection, use the CurrentSelectionStart and CurrentSelectionEnd properties.
CurrentSelectionAnchor 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.
CurrentSelectionEnd Returns the zero-based index of the right-most character of the current selection.
CurrentSelectionStart Returns the zero-based index of the left-most character of the current selection.
CurrentTail Returns the current editor text that follows the cursor position or selected text.
InsertedText Returns the text string a user attempts to add to this editor. If a user tries to erase text, this property returns String.Empty.
IsCanceled Returns whether an editor dicards a user action. Editors discard user actions that lead to no changes (for example, a user selects a character and types the same character, or presses Backspace when no characters behind a caret are present).
IsSelection Returns whether a portion of the current editor text is selected (the CurrentSelectedText property is not String.Empty).
ResultCursorPosition Returns the final position of a caret (cursor) if a user edit is accepted. The current caret position (before a user edit) is stored in the CurrentCursorPosition property.
ResultEditText Returns the final editor text if user edits are accepted. The current editor text (before a user edit) is stored in the CurrentEditText property.
ResultSelectionAnchor Returns the selection anchor if user edits are accepted.
Tag
See Also