Back to Devexpress

TcxCustomMaskEditProperties.EditMask Property

vcl-cxmaskedit-dot-tcxcustommaskeditproperties.md

latest1.7 KB
Original Source

TcxCustomMaskEditProperties.EditMask Property

Specifies the mask representing valid text for a masked edit control.

Declaration

delphi
property EditMask: TcxEditMask read; write;

Property Value

Type
TcxEditMask

Remarks

Use the EditMask property to restrict the number of characters a user can enter into a masked edit control to validate characters and formats. If the user attempts to enter an invalid character, the edit control will not accept it.

Setting the EditMask property to an empty string removes the mask.

The default value of the EditMask property for a data-aware editor is determined by the EditMask attribute of the dataset field to which this editor is connected.

You can use the RestoreDefaults method to revert to the default values of the EditMask property and some other properties retrieved from the related TField object attributes.

For more information on masks see Using MaskEdit.

See Also

Using Regular Expressions

Using the MaskEdit

TcxCustomMaskEditProperties Class

TcxCustomMaskEditProperties Members

cxMaskEdit Unit