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.v24.2.Core.dll
NuGet Package: DevExpress.Scheduler.Core
#Declaration
public static TimeOfDayInterval Intersect(
TimeOfDayInterval interval1,
TimeOfDayInterval interval2
)
#Parameters
Name | Type | Description |
---|---|---|
interval1 | Time |
A Time |
interval2 | Time |
A Time |
#Returns
Type | Description |
---|---|
Time |
A Time |
#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.