FreeTimeCalculator.CalculateFreeTime(TimeInterval, Resource) Method
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
Declaration
public TimeIntervalCollection CalculateFreeTime(
TimeInterval interval,
Resource resource
)
Parameters
Name | Type | Description |
---|---|---|
interval | TimeInterval | A TimeInterval object, representing the time period in which the search is performed. |
resource | Resource | A Resource object, which specifies a particular resource to narrow a search. |
Returns
Type | Description |
---|---|
TimeIntervalCollection | A TimeIntervalCollection collection, containing all spare time intervals. |
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