A newer version of this page is available. Switch to the current version.

TimeInterval.Intersect(TimeInterval, TimeInterval) Method

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

Namespace: DevExpress.XtraScheduler

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

Declaration

public static TimeInterval Intersect(
    TimeInterval interval1,
    TimeInterval interval2
)
Public Shared Function Intersect(
    interval1 As TimeInterval,
    interval2 As TimeInterval
) As TimeInterval

Parameters

Name Type Description
interval1 TimeInterval

A TimeInterval object which represents the first time interval.

interval2 TimeInterval

A TimeInterval object which represents the second time interval.

Returns

Type Description
TimeInterval

A TimeInterval object representing the intersection of the two time intervals. If the two specified time intervals don't intersect, the TimeInterval.Empty value will be returned.

Remarks

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

See Also