Skip to main content

TcxSchedulerStyles.GetContentParams(TDateTime,Boolean,TcxSchedulerStorageResourceItem) Method

Returns the TcxViewParams record containing information about the time blocks’ style attributes.

Declaration

function GetContentParams(const ADateTime: TDateTime; ALightColor: Boolean; AResource: TcxSchedulerStorageResourceItem = nil): TcxViewParams; overload;

Parameters

Name Type
ADateTime TDateTime
ALightColor Boolean
AResource TcxSchedulerStorageResourceItem

Returns

Type
TcxViewParams

Remarks

Use the GetContentParams method to get information about the style attributes of the time blocks located in the scheduling area.

The ADateTime parameter specifies the time block.

The AResource parameter specifies the resource if the View’s GroupingKind property is set to gkByResource.

The ALightColor parameter specifies whether the current time block corresponds to work time or not. If the current time block is working time the ALightColor parameter should be set to True. The range of working hours is specified by the scheduler’s OptionsView.WorkStart and OptionsView.WorkFinish properties.

See Also