BarLargeButtonItem(BarManager, String, Int32) Constructor
Creates an instance of the BarLargeButtonItem class with predefined settings.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public BarLargeButtonItem(
BarManager manager,
string caption,
int imageIndex
)
#Parameters
Name | Type | Description |
---|---|---|
manager | Bar |
A Bar |
caption | String | A string value specifying the caption of the created item. This value is assigned to the Bar |
image |
Int32 | An integer value specifying the index of the image assigned to the created item. This value is assigned to the Bar |
#Remarks
Use this constructor to create a new large button item with a predefined caption and image at runtime.
When the item is created, it is automatically appended to the BarManager.Items collection of the Bar Manager specified by the manager parameter. Once complete, you can add a link associated with this item to one of your bars. Use the Bar.AddItem or Bar.InsertItem method of the desired bar for this purpose.