Back to Devexpress

TdxBarManager.AddItem(TdxBarItemClass) Method

vcl-dxbar-dot-tdxbarmanager-dot-additem-x28-dxbar-dot-tdxbaritemclass-x29.md

latest1.0 KB
Original Source

TdxBarManager.AddItem(TdxBarItemClass) Method

Creates an instance of the AClass item and adds it to the current bar manager.

Declaration

delphi
function AddItem(AClass: TdxBarItemClass): TdxBarItem;

Parameters

NameType
AClassTdxBarItemClass

Returns

Type
TdxBarItem

Remarks

You can use this method to instantiate any bar item (for example, a button or an editor), which belongs to the TdxBarItem family.

AClass specifies the type of a particular item to be created.

This function returns a reference to the newly created item.

See Also

TdxBarManager.AddButton

TdxBarManager.AddSubItem

TdxBarManager.AddToolBar

TdxBarManager Class

TdxBarManager Members

dxBar Unit