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

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

Declaration

public TimeIntervalCollection CalculateFreeTime(
    TimeInterval interval,
    Resource resource
)
Public Function CalculateFreeTime(
    interval As TimeInterval,
    resource As Resource
) As TimeIntervalCollection

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