Skip to main content

TdxLayoutLookAndFeelList.CreateItem(TdxCustomLayoutLookAndFeelClass) Method

Creates a new layout look & feel component of the specified type.

Declaration

function CreateItem(AClass: TdxCustomLayoutLookAndFeelClass): TdxCustomLayoutLookAndFeel;

Parameters

Name Type Description
AClass TdxCustomLayoutLookAndFeelClass

A reference to the target layout look & feel component class.

Returns

Type Description
TdxCustomLayoutLookAndFeel

The created layout look & feel component.

Tip

To access all public API members of the created component, cast the returned object to the corresponding terminal TdxCustomLayoutLookAndFeel class descendant (AClass).

Remarks

Call the CreateItem function to create any supported layout look & feel component and add it to the end of the collection. All created components are accessible through the Items property.

Delete Layout Look & Feel Components

To delete layout look & feel components, release them directly in code (call the Free procedure in Delphi or use the delete keyword in C++Builder).

See Also