Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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

    TimeSpanMask Class

    Defines built-in patterns for time span masks.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    public static class TimeSpanMask

    #Remarks

    Use properties of the TimeSpanMask class to apply commonly used time span mask patterns to the Masked Input component. Each property is a wrapper for the corresponding standard time span format string. This technique simplifies the setup process.

    Razor
    <DxMaskedInput @bind-Value="time"
                   Mask="@TimeSpanMask.GeneralShortFormat" />
    @code {
        TimeSpan time = new TimeSpan(5, 16, 30, 15, 7);
    }
    

    Duration

    The appearance of the GeneralShortFormat and GeneralLongFormat mask patterns include the fractional seconds separator that depends on the current culture. Users can change the regional format in the SettingsTime & LanguageRegion system dialog. To change the mask culture programmatically, use the Culture property.

    #Inheritance

    Object
    TimeSpanMask
    See Also