Skip to main content

RepositoryItemTextEdit.Mask Property

Specifies the editor’s input mask. From v20.2, use the MaskSettings property to specify an input mask.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation


public virtual MaskProperties Mask { get; }

Property Value

Type Description

A MaskProperties object that comprises the editor’s mask settings.



From v20.2, use the MaskSettings property to specify an input mask. See the following help topic for more information: Input Mask.

If an input mask is applied to an editor, users can only enter a value the mask permits. Use the following properties to specify a mask:

  • EditMask — gets or sets a string value that specifies a mask expression.
  • MaskType — specifies how to parse a mask expression. To disable the input mask, set this property to None.

The code below shows how to limit the input in a date-time column.

RepositoryItemTextEdit textEdit = new RepositoryItemTextEdit();
textEdit.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.DateTime;
textEdit.Mask.EditMask = "yyyy-MMM-d, HH:mm:ss ";
colOrderDate.ColumnEdit = textEdit;


You cannot use input masks in the following editors: LookUpEdit, GridLookUpEdit, MemoEdit, MemoExEdit, and ImageComboBoxEdit.

See Also