Tab
A newer version of this page is available. Switch to the current version.

RibbonGalleryBarItem.ImageWidth Property

Specifies the width of gallery item images.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(typeof(Unit), "32")]
public virtual Unit ImageWidth { get; set; }
<DefaultValue(GetType(Unit), "32")>
Public Overridable Property ImageWidth As Unit

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.

Examples

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