Skip to main content

TimeOfDayInterval.Contains(TimeSpan) Method

Determines whether the time of day interval contains the specified time.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

Declaration

public bool Contains(
    TimeSpan time
)

Parameters

Name Type Description
time TimeSpan

A TimeSpan object to locate in the time of day interval.

Returns

Type Description
Boolean

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

Remarks

The time of day interval is assumed to contain the specified time, if the time isn’t less than the TimeOfDayInterval.Start and isn’t greater than the TimeOfDayInterval.End property values of the time of day interval.

See Also