Back to Devexpress

TdxLayoutLookAndFeelList.CreateItem(TdxCustomLayoutLookAndFeelClass) Method

vcl-dxlayoutlookandfeels-dot-tdxlayoutlookandfeellist-dot-createitem-x28-dxlayoutlookandfeels-dot-tdxcustomlayoutlookandfeelclass-x29.md

latest1.8 KB
Original Source

TdxLayoutLookAndFeelList.CreateItem(TdxCustomLayoutLookAndFeelClass) Method

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

Declaration

delphi
function CreateItem(AClass: TdxCustomLayoutLookAndFeelClass): TdxCustomLayoutLookAndFeel;

Parameters

NameTypeDescription
AClassTdxCustomLayoutLookAndFeelClass

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

|

Returns

TypeDescription
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

TdxLayoutLookAndFeelList.Count Property

TdxLayoutLookAndFeelList Class

TdxLayoutLookAndFeelList Members

dxLayoutLookAndFeels Unit