A newer version of this page is available. Switch to the current version.

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.v18.2.Core.dll


public TimeIntervalCollection CalculateFreeTime(
    TimeInterval interval
Public Function CalculateFreeTime(
    interval As TimeInterval
) As TimeIntervalCollection


Name Type Description
interval TimeInterval

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


Type Description

A TimeIntervalCollection collection, containing all spare time intervals.


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