IMaskEdit.PlaceholderChar

Syntax

PlaceholderChar: Char;

Description

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

Example

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

MaskEdit1.Mask := "      ddd ddd ddd";

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

End Sub Button1OnClick;

The pattern to enter the nine-digit number is set for the MaskEdit1 component by clicking the button after an example execution. The " * " character, implemented to enter the data, is used as a character that allocates the position.

See also:

IMaskEdit