FreeTimeCalculator.CalculateFreeTime(TimeInterval, Resource) Method
In This Article
Finds all time intervals that are not in use for the specified resource.
Namespace: DevExpress.XtraScheduler.Tools
Assembly: DevExpress.XtraScheduler.v24.2.Core.Desktop.dll
NuGet Package: DevExpress.Scheduler.CoreDesktop
#Declaration
public TimeIntervalCollection CalculateFreeTime(
TimeInterval interval,
Resource resource
)
#Parameters
Name | Type | Description |
---|---|---|
interval | Time |
A Time |
resource | Resource | A Resource object, which specifies a particular resource to narrow a search. |
#Returns
Type | Description |
---|---|
Time |
A Time |
#Remarks
The CalculateFreeTime method performs a search within the specified interval for the specified resource only.
The method returns a collection of intervals or the empty collection, if free intervals are not found.
See Also