Skip to main content
Bar

BarItemLinkCollection.Add(BarItem, Boolean, String, String, Boolean, Boolean) Method

Creates a new item link with the specific settings, and places it into this collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual BarItemLink Add(
    BarItem item,
    bool beginGroup,
    string keyTip,
    string dropDownKeyTip,
    bool buttonGroup,
    bool allowCollapseInSimplifiedRibbon
)

Parameters

Name Type Description
item BarItem

A BarItem that the newly created link should represent.

beginGroup Boolean

true if this link should start a group; otherwise, false.

keyTip String

The BarItemLink.KeyTip property for this link.

dropDownKeyTip String

The BarButtonItemLink.DropDownKeyTip property value for this link.

buttonGroup Boolean

The BarItemLink.ActAsButtonGroup property value for this link.

allowCollapseInSimplifiedRibbon Boolean

The BarItemLink.AllowCollapseInSimplifiedRibbon property value for this link.

Returns

Type Description
BarItemLink

A newly created BarItemLink.

See Also