Skip to main content
Bar

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.1.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