PopupMenuBase.InsertItem(BarItemLink, BarItem) Method
In This Article
Inserts a new item link in the item link collection of the current PopupMenuBase object before a specific collection element.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public virtual BarItemLink InsertItem(
BarItemLink beforeLink,
BarItem item
)
#Parameters
Name | Type | Description |
---|---|---|
before |
Bar |
The member of the item link collection before which a new item link is inserted. |
item | Bar |
The Bar |
#Returns
Type | Description |
---|---|
Bar |
The Bar |
#Remarks
If the item link collection is empty, then a new item link becomes the first collection member.
See Also