Skip to main content
A newer version of this page is available. .

GalleryItem.ImageIndex Property

Gets or sets the index of the image assigned to the gallery item.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

[Browsable(false)]
[DefaultValue(-1)]
[ImageList("Images")]
public int ImageIndex { get; set; }

Property Value

Type Default Description
Int32 -1

An integer which specifies the index of the item’s image in the collection of images.

Remarks

The ImageIndex property specifies the index of the required image in the collection of images. The source of images is specified by the BaseGallery.Images property.

It’s also possible to assign an image to the item using the GalleryItem.Image property. If images are specified via both the ImageIndex and Image properties, the image assigned to the Image property will be used.

See Also