Skip to main content

NumericMask Class

Defines built-in patterns for Numeric masks.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.2.dll

Declaration

public static class NumericMask

Remarks

Use the NumericMask class’s properties to apply built-in Numeric masks to a data editor. Each property is a wrapper for the corresponding numeric format string. This technique simplifies the setup process for users who are not familiar with standard format strings.

<DxSpinEdit @bind-Value="Value" 
            Mask="@NumericMask.RealNumber">
</DxSpinEdit>

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

Numeric Masks

Note that the pattern depends on the current culture. For example, the same mask can specify different patterns in the U.S. and France. A culture-specific numeric format is defined by the NumberFormat property. Users can change the regional format in the Settings → Time & Language → Region system dialog. To change the culture programmatically, use the Culture property.

Inheritance

Object
NumericMask
See Also