Skip to main content
Bar

BarItemLinkCollection.Add(BarItem, String, String) Method

Creates a link to the specified bar item with the specified Key Tips, and adds it to the end of the collection.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

public virtual BarItemLink Add(
    BarItem item,
    string keyTip,
    string dropDownKeyTip
)

Parameters

Name Type Description
item BarItem

A BarItem descendant, for which a link is created.

keyTip String

A string that specifies the Key Tip for the link. This value is used to initialize the created link’s BarItemLink.KeyTip property.

dropDownKeyTip String

A string that specifies the Key Tip used to open the bar button item’s dropdown, if any. This value is used to initialize the created link’s BarButtonItemLink.DropDownKeyTip property.

Returns

Type Description
BarItemLink

A BarItemLink object representing the added link.

See Also