Skip to main content

TimeSpanMask Class

Defines built-in patterns for time span masks.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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.

<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