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

Declaration

public virtual BarItemLink InsertItem(
    BarItemLink beforeLink,
    BarItem item
)
Public Overridable Function InsertItem(
    beforeLink As BarItemLink,
    item As BarItem
) As BarItemLink

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.

Implements

DevExpress.XtraBars.BarLinksHolder.InsertItem(BarItemLink, BarItem)
See Also