Skip to main content
A newer version of this page is available. .

NavItemCollection.Add(Boolean) Method

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

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v19.1.dll

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