Skip to main content
Bar

BarLinkContainerItem.AddItem(BarItem) Method

Adds another link to the BarLinkContainerItem.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual BarItemLink AddItem(
    BarItem item
)

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.

Example

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);
See Also