Vcl.Mask.TCustomMaskEdit.EditMask

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property EditMask: TEditMask read FEditMask write SetEditMask;

C++

__property System::Maskutils::TEditMask EditMask = {read=FEditMask, write=SetEditMask};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Mask.pas
Vcl.Mask.hpp
Vcl.Mask TCustomMaskEdit

Description

Specifies the mask that represents what text is valid for the masked edit control.

Use EditMask to restrict the characters a user can enter into the masked edit control to valid characters and formats. If the user attempts to enter an invalid character, the edit control does not accept the character. Validation is performed on a character-by-character basis by the ValidateEdit method.

Setting EditMask to an empty string removes the mask.

See Also

Code Examples