Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NumericMask Class

Defines built-in patterns for Numeric masks.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
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; }
}

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