Skip to main content

MonthView.RoundSelectedInterval(DateTimeRange) Method

Extends the specified time interval to the whole day(s) encompassing this interval.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.1.dll

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public override DateTimeRange RoundSelectedInterval(
    DateTimeRange interval
)

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 whole day(s) containing the specified interval.

Remarks

The RoundSelectedInterval method changes the specified time interval’s start and end values in the following way: the start value is rounded down to the beginning of the day containing the original interval’s start, and the end value is rounded up to the beginning of the next day. For instance, if the specified interval is December 25, 2017 9:00 AM - 6:00 PM, the RoundSelectedInterval method returns 12/25/2017 12:00:00 AM - 12/26/2017 12:00:00 AM.

See Also