Skip to main content

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

Assembly: DevExpress.XtraScheduler.v23.2.Core.dll

NuGet Package: DevExpress.Scheduler.Core

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 TimeOfDayInterval.Empty value will be returned.

Remarks

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

See Also