Vcl.Mask.TMaskEdit

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.Mask.TCustomMaskEditVcl.StdCtrls.TCustomEditVcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTMaskEdit

Delphi

TMaskEdit = class(TCustomMaskEdit)

C++

class PASCALIMPLEMENTATION TMaskEdit : public TCustomMaskEdit

Properties

Type Visibility Source Unit Parent
class public
Vcl.Mask.pas
Vcl.Mask.hpp
Vcl.Mask Vcl.Mask

Description

TMaskEdit implements a generic masked edit control.

Use a TMaskEdit object to put a masked edit control on your form. Masked edit controls validate the text the user enters against a mask that encodes the valid forms the text can take. The mask can also format text that is displayed to the user.

Mask characters

Mask character Permitted character
#, 0, 9 Digit. If the mask is '9', the digit is not required. The ANSI range is ['0'; '9'].
A, a Alphanumeric character. If the mask is 'a', the alphanumeric character is not required. The following ANSI ranges are permitted: ['A'; 'Z'], ['a', 'z'], and ['0'; '9'].
C, c Printable character. If the mask is 'c', the character is not required. The permitted ANSI range is [32; 126].

Formatting characters

Formatting character Effect
> The following alphabetic character is automatically converted to uppercase.
< The following alphabetic character is automatically converted to lowercase.

For a complete list of special characters, see System.MaskUtils.TEditMask.

TMaskEdit implements the generic behavior introduced in TCustomMaskEdit. TMaskEdit publishes many of the properties and methods inherited from TCustomMaskEdit, but does not introduce any new behavior.

See Also