BarItemLinkCollection.Add(BarItem, Boolean, String, String, Boolean) Method
Creates a link to the specified bar item with the specified Key Tips, and adds it to the end of the collection. The method enables you to specifiy whether the created link starts a group, and whether it must be arranged in the same manner as a BarButtonGroup.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public virtual BarItemLink Add(
BarItem item,
bool beginGroup,
string keyTip,
string dropDownKeyTip,
bool buttonGroup
)
#Parameters
Name | Type | Description |
---|---|---|
item | Bar |
A Bar |
begin |
Boolean | true to begin a group; otherwise, false. This value is used to initialize the created link’s Bar |
key |
String | A string that specifies the Key Tip for the link. This value is used to initialize the created link’s Bar |
drop |
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 Bar |
button |
Boolean | A Boolean value that specifies whether the bar item link is arranged in the same manner as a Bar |
#Returns
Type | Description |
---|---|
Bar |
A Bar |