Back to Devexpress

BarItemLinkCollection.Add(BarItem, String, String) Method

windowsforms-devexpress-dot-xtrabars-dot-baritemlinkcollection-dot-add-x28-devexpress-dot-xtrabars-dot-baritem-system-dot-string-system-dot-string-x29.md

latest2.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual BarItemLink Add(
    BarItem item,
    string keyTip,
    string dropDownKeyTip
)
vb
Public Overridable Function Add(
    item As BarItem,
    keyTip As String,
    dropDownKeyTip As String
) As BarItemLink

Parameters

NameTypeDescription
itemBarItem

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

TypeDescription
BarItemLink

A BarItemLink object representing the added link.

|

See Also

BarItemLinkCollection Class

BarItemLinkCollection Members

DevExpress.XtraBars Namespace