Skip to main content

TimeIntervalCollectionEx.Contains(TimeInterval) Method

Determines whether the collection contains the specified time interval.

Namespace: DevExpress.XtraScheduler

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

Declaration

public override bool Contains(
    TimeInterval interval
)

Parameters

Name Type Description
interval TimeInterval

A TimeInterval object to locate in the collection.

Returns

Type Description
Boolean

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

Remarks

Note that a collection is considered to contain the specified interval if any time interval in the collection either matches or contains the time range of the passed time interval (i.e. 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.)

See Also