RibbonGalleryItem.Image Property
Gets the settings of an image displayed by the gallery item.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public RibbonItemImageProperties Image { get; }
#Property Value
Type | Description |
---|---|
Ribbon |
A Ribbon |
#Remarks
The Image property provides access to the settings of a gallery item image.
You can specify the size of item images using the RibbonGalleryBarItem.ImageHeight and RibbonGalleryBarItem.ImageWidth properties for Gallery Bar items, or the RibbonGalleryProperties.ImageHeight and RibbonGalleryProperties.ImageWidth properties for Gallery Drop-Down items.
The image position can be specified using the RibbonGalleryBarItem.ImagePosition property for Gallery Bar items, or the RibbonGalleryProperties.ImagePosition property for Gallery Drop-Down items.
#Example
<dx:RibbonGalleryBarItem ImageWidth="40" ImageHeight="19" ImagePosition="Left" ...>
<Groups>
...
<dx:RibbonGalleryGroup Text="Office 2010">
<Items>
<dx:RibbonGalleryItem Text="Office 2010 Blue" ToolTip="Office 2010 Blue">
<Image Url="Images/Galleries/ThemeOffice2010Blue.png"></Image>
</dx:RibbonGalleryItem>
...