Back to Devexpress

TdxCustomLayoutControl.CreateItem(TdxCustomLayoutItemClass,TdxCustomLayoutGroup) Method

vcl-dxlayoutcontrol-dot-tdxcustomlayoutcontrol-dot-createitem-x28-dxlayoutcontainer-dot-tdxcustomlayoutitemclass-dxlayoutcontainer-dot-tdxcustomlayoutgroup-x29.md

latest2.0 KB
Original Source

TdxCustomLayoutControl.CreateItem(TdxCustomLayoutItemClass,TdxCustomLayoutGroup) Method

Creates a new item within the ExpressLayout Control and returns it.

Declaration

delphi
function CreateItem(AItemClass: TdxCustomLayoutItemClass = nil; AParent: TdxCustomLayoutGroup = nil): TdxCustomLayoutItem;

Parameters

NameType
AItemClassTdxCustomLayoutItemClass
AParentTdxCustomLayoutGroup

Returns

Type
TdxCustomLayoutItem

Remarks

Call this method to create a new item within the ExpressLayout Control.

The AItemClass parameter specifies the class of an item to create. By default, it is nil and therefore the default item class is used (TdxLayoutItem).

The AParent parameter specifies the parent group of the newly created item. By default, the AParent parameter is nil and the created item is invisible and presented within the list of available items of the Layout Control. To make it visible, you must assign its Parent property to any visible group. After this, the newly created item is removed from the available item list.

See Also

TdxCustomLayoutControl.Clear

TdxCustomLayoutControl.CreateGroup

TdxCustomLayoutControl.CreateItemForControl

TdxCustomLayoutControl Class

TdxCustomLayoutControl Members

dxLayoutControl Unit