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 with a button named Button1 on the form and the MaskEdit component named MaskEdit1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
MaskEdit1.MaskEnabled := True;
MaskEdit1.Mask := " dd dd ddddd";
MaskEdit1.InputTemplate := "Phone:8-9__-__-_____";
End Sub Button1OnClick;
After executing the example the template for entering the cell phone number is set for the MaskEdit1 component on clicking the button.
See also: