BarLargeButtonItem(BarManager, String, Int32) Constructor
Creates an instance of the BarLargeButtonItem class with predefined settings.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
manager | BarManager | A BarManager object representing the Bar Manager that will own the created item. This value is assigned to the BarItem.Manager property. |
caption | String | A string value specifying the caption of the created item. This value is assigned to the BarItem.Caption property. |
imageIndex | Int32 | An integer value specifying the index of the image assigned to the created item. This value is assigned to the BarItem.ImageIndex property. |
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.