Skip to main content
All docs
V18.2

TimeOfDayInterval.Intersect(TimeOfDayInterval, TimeOfDayInterval) Method

Returns a time-of-day interval which is the intersection of the two specified time-of-day intervals.

Namespace: DevExpress.UI.Xaml.Scheduler

Assembly: DevExpress.UI.Xaml.Scheduler.v18.2.dll

Declaration

public static TimeOfDayInterval Intersect(
    TimeOfDayInterval interval1,
    TimeOfDayInterval interval2
)

Parameters

Name Type Description
interval1 TimeOfDayInterval

A TimeOfDayInterval object which represents the first time-of-day interval.

interval2 TimeOfDayInterval

A TimeOfDayInterval object which represents the second time-of-day interval.

Returns

Type Description
TimeOfDayInterval

A TimeOfDayInterval object representing the intersection of the two time-of-day intervals. If the two specified time-of-day intervals don’t intersect, the Empty value will be returned.

Remarks

The Start of the returned TimeOfDayInterval is set to the Start time of the time-of-day interval which starts last. The End is set to the End time of the time-of-day interval which ends first.

See Also