TdxLayoutContainer.CreateItem(TdxCustomLayoutItemClass,TdxCustomLayoutGroup) Method
Creates a new layout item.
Declaration
function CreateItem(AItemClass: TdxCustomLayoutItemClass = nil; AParent: TdxCustomLayoutGroup = nil): TdxCustomLayoutItem;
Parameters
Name | Type |
---|---|
AItemClass | TdxCustomLayoutItemClass |
AParent | TdxCustomLayoutGroup |
Returns
Type |
---|
TdxCustomLayoutItem |
Remarks
This function returns the newly created item.
AItemClass specifies the class of the item to be created. By default, it is nil and therefore the default item class is used (TdxLayoutItem).
AParent specifies the item’s parent group. If AParent is nil, the item is invisible (it is stored in the layout control’s available items list).
See Also