Skip to main content
A newer version of this page is available. .
Bar

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

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InsertItem(BarItemLink, BarItem) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also