Back to Devexpress

NavItemCollection.Add(Boolean) Method

windowsforms-devexpress-dot-xtranavbar-dot-navitemcollection-dot-add-x28-system-dot-boolean-x29.md

latest2.0 KB
Original Source

NavItemCollection.Add(Boolean) Method

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

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
public virtual NavBarItem Add(
    bool isSeparator
)
vb
Public Overridable Function Add(
    isSeparator As Boolean
) As NavBarItem

Parameters

NameTypeDescription
isSeparatorBoolean

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

|

Returns

TypeDescription
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

Add(ICollectionItem)

Add

AddRange(NavBarItem[])

NavItemCollection Class

NavItemCollection Members

DevExpress.XtraNavBar Namespace