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.v24.2.Core.Desktop.dll
NuGet Package: DevExpress.Scheduler.CoreDesktop
#Declaration
public TimeIntervalCollection CalculateFreeTime(
TimeInterval interval
)
#Parameters
Name | Type | Description |
---|---|---|
interval | Time |
A Time |
#Returns
Type | Description |
---|---|
Time |
A Time |
#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.