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

TdxCustomLayoutGroup.CreateItemForControl(TControl) Method

Creates a new item for an existing control, places it within a specific group and returns the newly created item.

#Declaration

Delphi
function CreateItemForControl(AControl: TControl): TdxLayoutItem;

#Parameters

Name Type
AControl TControl

#Returns

Type
TdxLayoutItem

#Remarks

Use the CreateItemForControl method to create a new item within a specific group and connect this item with an existing control. The AControl parameter specifies the associated control that is contained within the created item. A new item is created as a group member.

Assume, there is a text edit control somewhere on your form and you want to place it into a specific group of the ExpressLayout Control. In this instance, you can call the CreateItemForControl method of this group and pass the text edit control name via the AControl parameter.

See Also