Tab

RibbonGalleryItem.Image Property

Gets the settings of an image displayed by the gallery item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public RibbonItemImageProperties Image { get; }

Property Value

Type Description
RibbonItemImageProperties

A RibbonItemImageProperties object that contains image settings.

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

ASPxRibbon_GalleryItemAndGroup

<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>
               ...
See Also