Skip to main content
A newer version of this page is available. .

MaskProperties.PlaceHolder Property

For the Simple, Regular and RegEx mask types this property gets or sets the character used as the placeholder in a masked editor.

Namespace: DevExpress.XtraEditors.Mask

Assembly: DevExpress.XtraEditors.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

public virtual char PlaceHolder { get; set; }

Property Value

Type Default Description
Char '_'

The character used as the placeholder in a masked editor.

Remarks

Use the PlaceHolder property to specify the character which is the placeholder.

Placeholders are displayed in the MaskType.Simple, MaskType.Regular and MaskType.RegEx mask modes.

For the MaskType.RegEx mask mode placeholders can be hidden by setting the MaskProperties.ShowPlaceHolders property to false.

The following images show empty masked editors with different placeholders. The mask expression is ‘(999)000-00-00’. The mask type is MaskType.Simple.

Placeholder Image
‘_’ Mask_BlankUnderscore
‘*’ Mask_BlankAsterisk
See Also