Mask: String;
The Mask property determines mask of the input field that specifies the available data during input.
The characters of the mask are specified in the positions meant for the data input. These positions are determined in the template using the character specified in the PlaceholderChar property.
The characters that determines the available data during input:
| Character | Value in mask |
| a/A | The input of letters and numbers is possible. |
| d/D | The input of numbers is possible. |
| c/C | The input of letters is possible. |
Executing the example requires a form, a button with the Button1 name located on it and the MaskEdit component with the MaskEdit1 name.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
MaskEdit1.MaskEnabled := True;
MaskEdit1.Mask := " dd dd ddddd";
MaskEdit1.InputTemplate := "Telephone:8-9__-__-_____";
End Sub Button1OnClick;
The pattern to enter the cell phone number is set for the MaskEdit1 component by clicking the button after an example execution.
See also: