Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

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.2.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