TimeIntervalCollectionEx.Contains(TimeInterval) Method
Determines whether the collection contains the specified time interval.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.dll
NuGet Package: DevExpress.Scheduler.Core
#Declaration
public override bool Contains(
TimeInterval interval
)
#Parameters
Name | Type | Description |
---|---|---|
interval | Time |
A Time |
#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.)