Skip to main content

TdxCustomTileBar.CreateItem(TdxTileBarItemSize,TdxTileControlGroup) Method

Creates a new tile.

Declaration

function CreateItem(ASize: TdxTileBarItemSize; AGroup: TdxTileControlGroup = nil): TdxTileBarItem; reintroduce;

Parameters

Name Type
ASize TdxTileBarItemSize
AGroup TdxTileControlGroup

Returns

Type
TdxTileBarItem

Remarks

This function returns a new tile added to the Items collection.

The ASize parameter specifies one of the predefined size values of the created tile item, initializing its Size property.

The optional AGroup parameter allows you to specify one of the existing tile groups to which the newly created tile is linked. By default, if nil is passed as the AGroup parameter, the CreateItem function links the created tile item to the last visible group in the Groups collection. If there are no visible groups in the tile bar control, a new group is created as a container for the newly created tile. To identify a group to which the tile is linked, use its Group property.

Note

You can pass a hidden group as the AGroup parameter. The resulting tile item is invisible, like any other tile linked to a hidden group.

See Also