Skip to main content
All docs
V24.2

CustomTextMaskInputArgs.CurrentHead Property

Returns the current editor text that precedes the cursor position or selected text.

Namespace: DevExpress.Data.Mask

Assembly: DevExpress.Data.v24.2.dll

Declaration

public string CurrentHead { get; }

Property Value

Type Description
String

The current editor text that precedes the cursor position or selected text.

Remarks

The image below illustrates the return values of Head and Tail properties in different scenarios.

Head and Tail

You can pass new Head and Tail values into the SetResult(String, String) method to set up the final editor text.

// Result: "AAA|BBB", "|" indicates the cursor position
args.SetResult("AAA", "BBB");
See Also