Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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