Skip to main content

TimeInterval.IntersectsWithExcludingBounds(TimeInterval) Method

Checks if the current time interval intersects with the specified time interval. The boundaries of the time intervals are excluded from the check.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

public bool IntersectsWithExcludingBounds(
    TimeInterval interval
)

Parameters

Name Type Description
interval TimeInterval

A TimeInterval object which is 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 the TimeInterval.Start value of the current time interval, and its TimeInterval.Start value is less than the TimeInterval.End value of the current time interval.

If both intervals have the same Start value and a zero duration (the TimeInterval.Duration equals TimeSpan.Zero), the IntersectsWithExcludingBounds returns true.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IntersectsWithExcludingBounds(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