Back to Devexpress

TimeSpanOutOfBoundsValueProcessMode Enum

blazor-devexpress-dot-blazor-711b09dc.md

latest2.2 KB
Original Source

TimeSpanOutOfBoundsValueProcessMode Enum

Lists values that specify whether a time span mask‘s section should accept values that exceed the section’s maximum threshold.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public enum TimeSpanOutOfBoundsValueProcessMode

Members

NameDescription
Deny

Users can enter only valid numbers into all mask sections (0-23 hours, 0-59 minutes, 0-59 seconds).

| | UpdateNextSection |

Users can enter any number into any mask section. If the entered value exceeds the section’s maximum threshold, the editor increases its neighboring section value.

| | AcceptForBiggestUnits |

Users can enter any number into the mask section that corresponds to the largest measurement unit, while they can enter only valid values in other mask sections.

|

The following properties accept/return TimeSpanOutOfBoundsValueProcessMode values:

Remarks

The OutOfBoundsValueProcessMode property specifies whether users can enter a number that exceeds the section’s maximum threshold (for instance, 65 minutes). The following code snippet allows users to enter any number into any mask section:

razor
<DxMaskedInput @bind-Value="@time" 
            Mask="@TimeSpanMask.GeneralShortFormat">
    <DxTimeSpanMaskProperties OutOfBoundsValueProcessMode="@TimeSpanOutOfBoundsValueProcessMode.UpdateNextSection" />
</DxMaskedInput>

@code {
    TimeSpan time { get; set; } = new TimeSpan(5, 16, 30, 15, 7);
}

Refer to the following topic for additional information: Time Span Masks.

See Also

DevExpress.Blazor Namespace