Back to Devexpress

NumericMask Class

blazor-devexpress-dot-blazor-2c82d43b.md

latest1.7 KB
Original Source

NumericMask Class

Defines built-in patterns for Numeric masks.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
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.

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

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

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

NumericMask Members

DevExpress.Blazor Namespace