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

MaskMode Enum

Lists mask modes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum MaskMode

Members

Name Description
Auto

The component activates a mask type based on the Value data type.

Numeric

The component activates the Numeric mask type.

DateTime

The component activates the Date-time mask type.

RegEx

The component activates the Regular Expression mask type.

Text

The component activates the Text mask type.

Remarks

The Masked Input component supports four mask types:

Regular Expression Masks

The component automatically activates a mask type based on the Value data type.

Value’s Type

Mask Type

DateTime

Date-Time

Numeric

Numeric

String

Text

To enable the desired mask mode in other cases, use the component’s MaskMode property.

To activate a Regular Expression mask, set the MaskMode property to MaskMode.RegEx.

<DxMaskedInput @bind-Value="Value"
               Mask="[A-Z]*"
               MaskMode="@MaskMode.RegEx" />

@code{
    String Value { get; set; }
}

For more information on available mask types, refer to the following topic: Masks.

See Also