Skip to main content

TdxCustomLayoutControl.CreateGroup(TdxLayoutGroupClass,TdxCustomLayoutGroup) Method

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

Declaration

function CreateGroup(AGroupClass: TdxLayoutGroupClass; AParent: TdxCustomLayoutGroup = nil): TdxCustomLayoutGroup; overload;

Parameters

Name Type
AGroupClass TdxLayoutGroupClass
AParent TdxCustomLayoutGroup

Returns

Type
TdxCustomLayoutGroup

Remarks

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

The AGroupClass parameter specifies the class of a group to be created: TdxLayoutGroup or TdxLayoutAutoCreatedGroup.

The AParent parameter specifies the parent group of the newly created group. By default, the AParent parameter is nil and the created group 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 group is removed from the available item list.

See Also