A newer version of this page is available. Switch to the current version.

GalleryItem.ImageIndex Property

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

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[Browsable(false)]
[DefaultValue(-1)]
[ImageList("Images")]
[SmartTagProperty("Image Index", "Image", 20, SmartTagActionType.RefreshAfterExecute)]
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