Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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