Back to Devexpress

GalleryItem.HoverImageIndex Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-galleryitem-ab5253f4.md

latest2.3 KB
Original Source

GalleryItem.HoverImageIndex Property

Gets or sets the index of the hover image assigned to the gallery item. This property is obsolete. Use the GalleryItem.ImageOptions.HoverImageIndex property instead.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(-1)]
[EditorBrowsable(EditorBrowsableState.Never)]
[ImageList("HoverImages")]
public int HoverImageIndex { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DefaultValue(-1)>
<ImageList("HoverImages")>
Public Property HoverImageIndex As Integer

Property Value

TypeDefaultDescription
Int32-1

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

|

Remarks

The HoverImageIndex property specifies the index of the required image in the collection of hover images. The source of hover images is specified by the BaseGallery.HoverImages property.

It’s also possible to assign a hover image to the item using the GalleryItem.ImageOptions.HoverImage property. If images are specified via both the HoverImageIndex and HoverImage properties, the image assigned to the HoverImage property will be used.

For more information on hover images see BaseGallery.AllowHoverImages.

See Also

AllowHoverImages

HoverImages

GalleryItem Class

GalleryItem Members

DevExpress.XtraBars.Ribbon Namespace