Skip to main content

TcxSchedulerEventImages.Add(Integer,Boolean) Method

Loads a custom icon into the collection, which will then be within the user event‘s rectangle.

Declaration

function Add(AImageIndex: Integer; AutoHide: Boolean = True): TcxSchedulerEventImageItem;

Parameters

Name Type
AImageIndex Integer
AutoHide Boolean

Returns

Type
TcxSchedulerEventImageItem

Remarks

The Add method creates a new instance of the icon specified by the AImageIndex and adds it to the TcxSchedulerEventImages collection.

The AImageIndex parameter specifies the image’s position in the scheduler’s EventImages collection.

The AutoHide parameter specifies whether the newly created icon is hidden if there isn’t enough space to draw the entire icon.

See Also