Back to Devexpress

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

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

latest2.8 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual BarItemLink Add(
    BarItem item,
    bool beginGroup,
    string keyTip,
    string dropDownKeyTip,
    bool buttonGroup,
    bool allowCollapseInSimplifiedRibbon
)
vb
Public Overridable Function Add(
    item As BarItem,
    beginGroup As Boolean,
    keyTip As String,
    dropDownKeyTip As String,
    buttonGroup As Boolean,
    allowCollapseInSimplifiedRibbon As Boolean
) As BarItemLink

Parameters

NameTypeDescription
itemBarItem

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

TypeDescription
BarItemLink

A newly created BarItemLink.

|

See Also

BarItemLinkCollection Class

BarItemLinkCollection Members

DevExpress.XtraBars Namespace