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

RepositoryItemTextEdit.Mask Property

Provides access to the editor’s mask settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DXCategory("Format")]
public virtual MaskProperties Mask { get; }

Property Value

Type Description
MaskProperties

A MaskProperties object which provides the editor’s mask settings.

Remarks

Applying a mask to the editor allows the text end-users can enter to be restricted. If masked mode is enabled, the editor validates the text against the mask and only allows data to be entered that satisfies the mask expression. To enable masked mode for an editor, set the MaskProperties.MaskType property and specify the mask using the MaskProperties.EditMask property. Refer to the Mask Editors Overview document for more information on masks.

To disable masked mode, set the MaskProperties.MaskType property to the MaskType.None value.

Note

The following editors do not support editing in masked mode: LookUpEdit, GridLookUpEdit, MemoEdit, MemoExEdit and ImageComboBoxEdit.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Mask property.

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