DayViewBase.RoundSelectedInterval(DateTimeRange) Method
Stretches the specified time interval to the time slot boundaries.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
Parameters
Name | Type | Description |
---|---|---|
interval | DateTimeRange | A DateTimeRange object that is the original time range. |
Returns
Type | Description |
---|---|
DateTimeRange | A DateTimeRange object that is the time range aligned to the time slot boundaries. |
Remarks
The RoundSelectedInterval method changes the specified time interval’s start and end values to the values of time slots encompassing the interval. The resulting start value is the start of the time slot containing the original interval’s start, the resulting end value is the end of the time slot containing the interval’s end.
Note
The DayViewBase.TimeScale property determines the time slot interval, which is visualized as the interval of a time cell.