Skip to main content

TimeInterval.Contains(DateTime) Method

Determines whether the time interval contains the specified date.

Namespace: DevExpress.XtraScheduler

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

Declaration

public bool Contains(
    DateTime date
)

Parameters

Name Type Description
date DateTime

A DateTime object to locate in the time interval.

Returns

Type Description
Boolean

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

Remarks

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

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