Skip to main content

TcxSchedulerEventConflictsInfo.Calculate(Boolean) Method

Populates the ConflictEvents collection with the overlapped user events which fall within the specified time range and locates any free time blocks.

Declaration

procedure Calculate(ACalculateFreeTime: Boolean = True); virtual;

Parameters

Name Type
ACalculateFreeTime Boolean

Remarks

The time range is specified in one of two ways:

It’s either the start and end times of the user event which is used as the basis to create the TcxSchedulerEventConflictsInfo instance (see the TcxSchedulerEvent.CreateConflictsInfo method or the first overloaded Create constructor with the Event parameter).

Note

user events, which overlap an Event, are not considered to be overlapped with that Event if its availability status is free (see the TcxSchedulerEvent.State property).

Or the time range is specified explicitly by passing time bounds into the other overloaded versions of the Create constructor.

The Calculate method locates user events within the specified time range and loads only those which overlap. This method searches for time blocks which are not occupied by user events within the specified time range and loads them (if any) into the TimeRanges collection.

The ACalculateFreeTime parameter specifies whether search for free time blocks will be performed by the method. Set the ACalculateFreeTime parameter to False to cancel search.

See Also