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

GalleryItem Class

Represents an item within a gallery.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v18.1.dll

Declaration

[SmartTagAction(typeof(GalleryItemDesignTimeActionsProvider), "AddItem", "Add Item")]
[SmartTagAction(typeof(GalleryItemDesignTimeActionsProvider), "RemoveItem", "Remove Item", SmartTagActionType.CloseAfterExecute)]
[SmartTagAction(typeof(GalleryItemDesignTimeActionsProvider), "AddGroup", "Add Group")]
[TypeConverter(typeof(UniversalTypeConverterEx))]
public class GalleryItem :
    ICloneable,
    ISupportCommandBinding,
    IAppearanceOwner,
    IDXImageUriClient

Remarks

A gallery consists of groups of gallery items.The GalleryItem class represents a gallery item. To access gallery items that belong to a specific gallery group use the GalleryItemGroup.Items property.

A gallery item is visually represented by an image which is specified by the GalleryItem.Image or GalleryItem.ImageIndex property. The item’s caption and description are specified by the GalleryItem.Caption and GalleryItem.Description properties. To make the item’s caption and description visible, set the BaseGallery.ShowItemText property to true.

See Gallery Items for more information.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GalleryItem class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
GalleryItem
See Also