Bar

BarLinkContainerItem.AddItem(BarItem) Method

Adds another link to the BarLinkContainerItem.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public virtual BarItemLink AddItem(
    BarItem item
)
Public Overridable Function AddItem(
    item As BarItem
) As BarItemLink

Parameters

Name Type Description
item BarItem

A BarItem descendant instance.

Returns

Type Description
BarItemLink

An instance of the added link.

Remarks

Link is a BarItemLink class instance.

Examples

The following code demonstrates how to add a specific item link into the BarLinkContainerItem:

private DevExpress.XtraBars.BarButtonItem BarButtonItem1;
...
BarButtonItem1.Caption = "New Item";
BarLinkContainerItem1.AddItem(BarButtonItem1);

Implements

DevExpress.XtraBars.BarLinksHolder.AddItem(BarItem)
See Also