Skip to main content

MaskType Enum

Lists values that specify the type of mask used by an editor.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public enum MaskType

Members

Name Description
None

The masked input is disabled.

DateTime

The editor accepts date/time values. The mask string must use the DateTime format syntax.

DateTimeAdvancingCaret

The DateTime mask with automatic navigation between mask parts.

If a user completes a part of the value, the caret moves to the next editable part.

DateOnly

The editor accepts date values. The mask string must use the DateOnly format syntax (.NET 6.0+ required).

DateOnlyAdvancingCaret

The DateOnly mask with automatic navigation between mask parts.

If a user completes a part of the value, the caret moves to the next editable part.

DateTimeOffset

The editor accepts date/time values with the timezone offset. The mask string must use the DateTimeOffset format syntax.

DateTimeOffsetAdvancingCaret

The DateTimeOffset mask with automatic navigation between mask parts.

If a user completes a part of the value, the caret moves to the next editable part.

TimeOnly

The editor accepts time values. The mask string must use the TimeOnly format syntax (.NET 6.0+ required).

TimeOnlyAdvancingCaret

The TimeOnly mask with automatic navigation between mask parts.

If a user completes a part of the value, the caret moves to the next editable part.

Numeric

The editor accepts numeric values. The mask string must use the Numeric format syntax.

RegEx

The mask should use the full-functional regular expressions.

Regular

The mask should use the simplified regular expression syntax.

Simple

The mask should use the simplified syntax.

TimeSpan

The editor accepts time interval values. The mask string must use the TimeSpan format syntax.

TimeSpanAdvancingCaret

The TimeSpan mask with automatic navigation between mask parts.

If a user completes a part of the value, the caret moves to the next editable part.

Custom

Applies the mask specified in the CustomMask event.

Related API Members

The following properties accept/return MaskType values:

Remarks

The values listed by this enumeration are used to set the TextEdit.MaskType and TextEditSettings.MaskType properties. The mask itself can be specified via the TextEdit.Mask and TextEditSettings.Mask properties.

See Also