Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.1.dll

NuGet Package: 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