Skip to main content

TcxCustomMaskEditProperties.EditMask Property

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

Declaration

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