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

MaskSettings.PromptChar Property

Gets or sets the character used as the placeholder in a masked editor.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue('_')]
public char PromptChar { get; set; }

Property Value

Type Default Description
Char '_'

A character used as the placeholder in a masked editor.

Property Paths

You can access this nested property as listed below:

Show 15 property paths
Library Object Type Path to PromptChar
ASP.NET Controls and MVC Extensions ASPxButtonEdit
.MaskSettings .PromptChar
ASPxTextBox
.MaskSettings .PromptChar
ButtonEditProperties
.MaskSettings .PromptChar
RibbonTextBoxProperties
.MaskSettings .PromptChar
TextBoxProperties
.MaskSettings .PromptChar
ASP.NET Bootstrap Controls BootstrapButtonEdit
.MaskSettings .PromptChar
BootstrapButtonEditProperties
.MaskSettings .PromptChar
BootstrapTextBox
.MaskSettings .PromptChar
BootstrapTextBoxProperties
.MaskSettings .PromptChar
ASP.NET MVC Extensions MVCxButtonEdit
.MaskSettings .PromptChar
MVCxButtonEditProperties
.MaskSettings .PromptChar
MVCxColumnButtonEditProperties
.MaskSettings .PromptChar
MVCxColumnTextBoxProperties
.MaskSettings .PromptChar
MVCxTextBox
.MaskSettings .PromptChar
MVCxTextBoxProperties
.MaskSettings .PromptChar

Remarks

Use the PromptChar property to specify the character which serves as a placeholder within a mask specified via the MaskSettings.Mask property. A placeholder prompts an end-user where a value can be entered into an editor.

Example

Web Forms:

<dx:ASPxTextBox ID="txtZip" runat="server">
    <MaskSettings Mask="00000" PromptChar="#" />
</dx:ASPxTextBox>

Concepts

Online Demos

See Also