IMaskEdit.PlaceholderChar

Syntax

PlaceholderChar: Char;

Description

The PlaceholderChar property determines the character that is used in the template to specify positions intended for data input. The "_" character is used by default.

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.PlaceholderChar := '*';

MaskEdit1.Mask := "      ddd ddd ddd";

MaskEdit1.InputTemplate := "Number:***-***-***";

End Sub Button1OnClick;

After executing the example the template to enter the nine-digit number is set for the MaskEdit1 component by clicking the button. The " * " character is used to specify positions used for data input.

See also:

IMaskEdit