TdxCustomLayoutControl.CreateItem(TdxCustomLayoutItemClass,TdxCustomLayoutGroup) Method
Creates a new item within the ExpressLayout Control and returns it.
Declaration
function CreateItem(AItemClass: TdxCustomLayoutItemClass = nil; AParent: TdxCustomLayoutGroup = nil): TdxCustomLayoutItem;
Parameters
Name | Type |
---|---|
AItemClass | TdxCustomLayoutItemClass |
AParent | TdxCustomLayoutGroup |
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