BarItemLinkCollection.Insert(BarItemLink, BarItem) Method
Creates a new link to the specified bar item and adds it before the specified link in the collection.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public virtual BarItemLink Insert(
BarItemLink beforeLink,
BarItem item
)
#Parameters
Name | Type | Description |
---|---|---|
before |
Bar |
A Bar |
item | Bar |
A Bar |
#Returns
Type | Description |
---|---|
Bar |
A Bar |
#Remarks
The Insert method inserts a new link before the specified one by moving all the following links to the end of the collection. If the collection does not contain a beforeLink, the link is appended to the end.
Note: a bar item must belong to the BarManager’s BarManager.Items collection so that a link to it can be created and added to the collection. Otherwise, an exception will be raised.