BarItem.ImageIndex Property
Gets or sets the index of a small image assigned to the item.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual int ImageIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The index of an image in the collection of small images. |
Remarks
The ImageIndex property specifies the index of the required image in the collection of small images. If you are using the standard bars from the DevExpress Ribbon, Menu and Docking Library, the source of small images is specified by the BarManager.Images property. In the Ribbon Controls, the source of small images is specified by the RibbonControl.Images property.
It’s also possible to assign a small image to the bar item using the BarItem.Glyph property.
If images are specified via both the ImageIndex and BarItem.Glyph properties the image assigned to the BarItem.Glyph property will be used.
In standard bars you can provide a custom image for each bar item link using the BarItemLink.ImageIndex property.