Skip to main content
All docs
V24.1

CustomTextMaskInputArgs.CurrentHead Property

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

Namespace: DevExpress.Data.Mask

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

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