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

FreeTimeCalculator.CalculateFreeTime(TimeInterval) Method

Finds all time intervals that are not in use within the specified time period.

Namespace: DevExpress.XtraScheduler.Tools

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

Declaration

public TimeIntervalCollection CalculateFreeTime(
    TimeInterval interval
)

Parameters

Name Type Description
interval TimeInterval

A TimeInterval object, representing the time period in which the search is performed.

Returns

Type Description
TimeIntervalCollection

A TimeIntervalCollection collection, containing all spare time intervals.

Remarks

The CalculateFreeTime method performs a search within the specified interval. It returns a collection of intervals or the empty collection, if free intervals are not found.

For more specific searches use the FreeTimeCalculator.CalculateFreeTime overloaded method with Resource as one of the arguments. It looks for the free time slots available for the specified resource only.

See Also