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

NavBarGroup.AddItem() Method

Creates a new item in a NavBarControl and creates a link to this item in the current group.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public NavBarItemLink AddItem()

#Returns

Type Description
NavBarItemLink

A NavBarItemLink object representing the link to the item being created.

#Remarks

This method creates a new item in a NavBarControl and then adds a link to the item in the current group. The link is added to the end of the NavBarGroup.ItemLinks collection. The methods provided by the NavBarGroup.ItemLinks collection allow you to add links to existing items. All the NavBarControl’s items are stored in the NavBarControl.Items collection.

If a group does not belong to a NavBarControl, the AddItem method does nothing and returns null.

For more information on items and links, see Navigation Bar.

See Also