Skip to main content

NavItemCollection.Add(Boolean) Method

Creates a new item and adds it to the end of the collection.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v23.2.dll

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

Declaration

public virtual NavBarItem Add(
    bool isSeparator
)

Parameters

Name Type Description
isSeparator Boolean

A Boolean value that specifies whether to create a separator instead of a regular item.

Returns

Type Description
NavBarItem

Returns the newly created NavBarItem or NavBarSeparatorItem.

Remarks

The Add method is used to create a new item and add it to the end of the collection. If the isSeparator parameter is set to false, the NavBarItem is created; if true, the NavBarSeparatorItem is created.

See Also