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
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