InputTemplate: String;
The InputTemplate property determines a template according to which the data must be entered to the editor of the component.
This template should be displayed in the component. The characters specified in the PlaceholderChar property are used to indicate positions to which the data can be entered in accordance with the specified mask.
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: