Skip to main content

NavBarGroup.InsertItem(Int32) Method

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

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

Declaration

public virtual NavBarItemLink InsertItem(
    int position
)

Parameters

Name Type Description
position Int32

The position to insert the link into.

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 creates a link to the item in the current group. The link is added to the NavBarGroup.ItemLinks collection at the specified position. All NavBarControl’s items can be accessed via the NavBarControl.Items property.

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

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

See Also