Skip to main content
A newer version of this page is available. .

MaskType Enum

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

Namespace: DevExpress.XtraEditors.Mask

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public enum MaskType

Members

Name Description
None

Specifies that the mask feature is disabled.

DateTime

Specifies that the editor should accept date/time values and that the mask string must use the DateTime format syntax.

DateTimeAdvancingCaret

The DateTime mask mode with the caret automatic movement feature.

After an end-user enters and completes a specific portion of a date/time value the caret automatically moves to the following part of the date/time value that can be edited.

Numeric

Specifies that the editor should accept numeric values and that the mask string must use the Numeric format syntax.

RegEx

Specifies that the mask should be created using full-functional regular expressions.

Regular

Specifies that the mask should be created using simplified regular expression syntax.

Simple

Specifies that the mask should use the simplified syntax.

Custom

Specifies that the editor uses a custom mask manager.

To implement a custom mask manager which will deal with masks in a custom manner create a custom editor and override its CreateMaskManager method. This method should then supply a custom mask manager when the MaskProperties.MaskType property is set to Custom.

Related API Members

The following properties accept/return MaskType values:

Remarks

The values listed by this enumeration are used to set the MaskProperties.MaskType property. The mask itself can be specified via the MaskProperties.EditMask property.

For details on how to create and use different mask types, see the Input Mask document.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MaskType enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also