Skip to main content

TdxNavBarItems.Add(TcxComponentCollectionItemClass) Method

Adds a new item to the end of the collection and returns the corresponding object.

Declaration

function Add(AItemClass: TcxComponentCollectionItemClass): TdxNavBarItem; overload;

Parameters

Name Type
AItemClass TcxComponentCollectionItemClass

Returns

Type
TdxNavBarItem

Remarks

The second variant allows you to add a TdxNavBarItem descendant to the collection. The item’s class type is passed as the AItemClass parameter.

The object returned by the Add method can be passed as a parameter to the CreateLink method. This will create a link between a group and the newly created item. The desired group to contain this link can be accessed by the NavBar control’s Groups property. Alternatively, you can use the group’s component name.

See Also