Skip to main content
A newer version of this page is available. .

TimeInterval.Contains(TimeInterval) Method

Determines whether the current time interval contains the specified time interval.

Namespace: DevExpress.XtraScheduler

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

Declaration

public bool Contains(
    TimeInterval interval
)

Parameters

Name Type Description
interval TimeInterval

A TimeInterval object to locate in the current time interval.

Returns

Type Description
Boolean

true if the current time interval contains the specified time interval; otherwise, false.

Remarks

The current time interval is supposed to contain the specified time interval, if the TimeInterval.Start property value of the specified time interval isn’t less than the TimeInterval.Start of the current time interval, and the TimeInterval.End property value of the specified time interval isn’t greater than the TimeInterval.End property value of the current time interval.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Contains(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