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

PopupMenuBase.InsertItem(BarItemLink, BarItem) Method

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
beforeLink BarItemLink

The member of the item link collection before which a new item link is inserted.

item BarItem

The BarItem whose link is inserted.

#Returns

Type Description
BarItemLink

The BarItemLink inserted in the collection.

#Remarks

If the item link collection is empty, then a new item link becomes the first collection member.

See Also