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 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.PlaceholderChar := '*';
    MaskEdit1.Mask := "      ddd ddd ddd";
    MaskEdit1.InputTemplate := "Number:***-***-***";
End Sub Button1OnClick;

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

See also:

IMaskEdit