Skip to main content

TimeInterval.IntersectsWith(TimeInterval) Method

Checks if the current time interval intersects with the specified time interval.

Namespace: DevExpress.XtraScheduler

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

Declaration

public bool IntersectsWith(
    TimeInterval interval
)

Parameters

Name Type Description
interval TimeInterval

A TimeInterval object which represents the time interval to be checked.

Returns

Type Description
Boolean

true if the two time intervals intersect; otherwise, false.

Remarks

The specified time interval is considered to intersect with the current time interval if its TimeInterval.End value is greater than or equal to the TimeInterval.Start value of the current time interval, or its TimeInterval.Start value is less than or equal to the TimeInterval.End value of the current time interval.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IntersectsWith(TimeInterval) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also