Skip to main content

TdxLayoutContainer.CreateItemForControl(TControl,TdxCustomLayoutGroup) Method

Creates a new layout item for an existing control, and places it within a specified layout group.

Declaration

function CreateItemForControl(AControl: TControl; AParent: TdxCustomLayoutGroup = nil): TdxLayoutItem;

Parameters

Name Type
AControl TControl
AParent TdxCustomLayoutGroup

Returns

Type
TdxLayoutItem

Remarks

This function returns the newly created item.

AControl specifies the control for which the item is created.

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