Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarItemLinkCollection.AddRange(BarItem[]) Method

Creates an array of links to the specified bar items and adds them to the end of the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void AddRange(
    params BarItem[] items
)

#Parameters

Name Type Description
items BarItem[]

An array of BarItem descendants, for which links are created and added to the collection.

#Remarks

Links are added to the collection in the same order as the position of the bar items within the array. Links to individual bar items can be added to the collection using the BarItemLinkCollection.Add and BarItemLinkCollection.Insert methods. If you need to remove a link from the collection, use the BarItemLinkCollection.Remove or BarItemLinkCollection.RemoveAt method.

Note: bar items must belong to the BarManager’s BarManager.Items collection so that links to them can be created and added to the collection. Otherwise, an exception will be raised.

See Also