Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxNavBarItems.Add(TcxComponentCollectionItemClass) Method

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

#Declaration

Delphi
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