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.v19.1.dll
Declaration
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the AddItem() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.