Back to Devexpress

GalleryItem(Image, Image, String, String, Int32, Int32, Object, String, Boolean) Constructor

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-galleryitem-dot-galleryitem-x28-image-image-string-string-int32-int32-object-string-boolean-x29.md

latest4.2 KB
Original Source

GalleryItem(Image, Image, String, String, Int32, Int32, Object, String, Boolean) Constructor

Initializes a new instance of the GalleryItem class with the specified settings.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public GalleryItem(
    Image image,
    Image hoverImage,
    string caption,
    string description,
    int imageIndex,
    int hoverImageIndex,
    object tag,
    string hint,
    bool itemChecked
)
vb
Public Sub New(
    image As Image,
    hoverImage As Image,
    caption As String,
    description As String,
    imageIndex As Integer,
    hoverImageIndex As Integer,
    tag As Object,
    hint As String,
    itemChecked As Boolean
)

Parameters

NameTypeDescription
imageImage

A Image object which specifies the item’s image. This value is assigned to the GalleryItem.ImageOptions.Image property.

| | hoverImage | Image |

A Image object which specifies the item’s hover image. This value is assigned to the GalleryItem.ImageOptions.HoverImage property.

| | caption | String |

A string which specifies the item’s caption. This value is assigned to the GalleryItem.Caption property.

| | description | String |

A string which specifies the item’s description. This value is assigned to the GalleryItem.Description property.

| | imageIndex | Int32 |

An integer which specifies the index of the item’s image in the BaseGallery.Images collection. This value is assigned to the GalleryItem.ImageOptions.ImageIndex property.

| | hoverImageIndex | Int32 |

An integer which specifies the index of the item’s image in the BaseGallery.HoverImages collection. This value is assigned to the GalleryItem.ImageOptions.HoverImageIndex property.

| | tag | Object |

An object to be bound to the item. This value is assigned to the GalleryItem.Tag property.

| | hint | String |

A string which specifies the item’s hint. This value is assigned to the GalleryItem.Hint property.

| | itemChecked | Boolean |

A Boolean value that indicates whether the item is checked. This value is assigned to the GalleryItem.Checked property.

|

See Also

GalleryItem Class

GalleryItem Members

DevExpress.XtraBars.Ribbon Namespace