FreeTimeCalculator.FindFreeTimeInterval(TimeInterval, Resource, TimeSpan, Boolean) Method
Performs a search for the time slot with the specified minimum duration within the specified interval, and assigned to the specified resource.
Namespace: DevExpress.XtraScheduler.Tools
Assembly: DevExpress.XtraScheduler.v24.2.Core.Desktop.dll
NuGet Package: DevExpress.Scheduler.CoreDesktop
#Declaration
public TimeInterval FindFreeTimeInterval(
TimeInterval interval,
Resource resource,
TimeSpan duration,
bool forward
)
#Parameters
Name | Type | Description |
---|---|---|
interval | Time |
A Time |
resource | Resource | A Resource of the appointments taken into account when the search is performed. |
duration | Time |
A Time |
forward | Boolean | If true, the search starts at the interval. |
#Returns
Type | Description |
---|---|
Time |
A Time |
#Remarks
The FindFreeTimeInterval method searches for the nearest free interval with a specified duration or longer, within the specified period. Only appointments assigned to the specified resource are considered.
To see an example, refer to the description of the FreeTimeCalculator class.