Skip to main content
Tab

RibbonGalleryBarItem.ImageWidth Property

Specifies the width of gallery item images.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

[DefaultValue(typeof(Unit), "32")]
public virtual Unit ImageWidth { get; set; }

#Property Value

Type Default Description
Unit "32"

A Unit value specifying an image width.

#Remarks

Use the ImageWidth and RibbonGalleryBarItem.ImageHeight properties to specify the size of gallery item images (RibbonGalleryItem.Image) in the gallery bar item. To specify the image position, use the RibbonGalleryBarItem.ImagePosition property.

#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