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

BarLinkContainerItem.AddItem(BarItem) Method

Adds another link to the BarLinkContainerItem.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddItem(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