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

TimeInterval.Intersect(TimeInterval) Method

Returns a time interval which is the intersection of the current time interval with the specified time interval.

Namespace: DevExpress.XtraScheduler

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


public TimeInterval Intersect(
    TimeInterval interval
Public Function Intersect(
    interval As TimeInterval
) As TimeInterval


Name Type Description
interval TimeInterval

A TimeInterval object which specifies the time interval to be intersected.


Type Description

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


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