IMaskEdit.InputTemplate

Syntax

InputTemplate: String;

Description

The InputTemplate property determines a template, according to which the data must be entered to the editor of the component.

Comments

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.

Example

Executing the example requires a form, a button named Button1 on it and the MaskEdit component named MaskEdit1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Begin

MaskEdit1.MaskEnabled := True;

MaskEdit1.Mask := "           dd dd ddddd";

MaskEdit1.InputTemplate := "Telephone:8-9__-__-_____";

End Sub Button1OnClick;

After executing the example the template to enter the cell phone number is set for the MaskEdit1 component on clicking the button.

See also:

IMaskEdit