Back to Devexpress

ASPxTextBox.MaskSettings Property

aspnet-devexpress-dot-web-dot-aspxtextbox-a7da8413.md

latest1.9 KB
Original Source

ASPxTextBox.MaskSettings Property

Gets the editor’s mask settings.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public MaskSettings MaskSettings { get; }
vb
Public ReadOnly Property MaskSettings As MaskSettings

Property Value

TypeDescription
MaskSettings

A MaskSettings object that contains the mask settings of the editor.

|

Remarks

This property is a wrapper of the TextBoxProperties.MaskSettings property. Refer to its description for more information.

Example

The following part of the Masked Input online demo, illustrates how to set the mask for the ASPxTextBox.

aspx
<dx:ASPxTextBox ID="txtZip" runat="server" Width="150">
     <MaskSettings Mask="00000" ErrorText="Please input missing digits" />
     <ValidationSettings ErrorDisplayMode="ImageWithTooltip" />
</dx:ASPxTextBox>

See Also

Mask

Mask Types

Mask Hints

Text Box

ASPxTextBox Class

ASPxTextBox Members

DevExpress.Web Namespace