Skip to main content

TcxSchedulerEvent.IsResourceEvent(TcxSchedulerStorageResourceItem,Boolean) Method

Checks whether the user event belongs to the AResource resource.

Declaration

function IsResourceEvent(AResource: TcxSchedulerStorageResourceItem; AllowUnassigned: Boolean): Boolean;

Parameters

Name Type
AResource TcxSchedulerStorageResourceItem
AllowUnassigned Boolean

Returns

Type
Boolean

Remarks

Call this function to find out whether the user event is in the AResource resource’s group.

The AllowUnassigned parameter specifies whether the user event can be shared with resources if no resources are associated with the user event. That is, if the TcxSchedulerEvent.ResourceID is set to null and the AllowUnassigned parameter is set to True, then the function returns True.

See Also