Skip to main content
Tab

RibbonGalleryBarItem.ImagePosition Property

Gets or sets the position of ribbon gallery item images within the gallery bar item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(ImagePosition.Top)]
public virtual ImagePosition ImagePosition { get; set; }

Property Value

Type Default Description
ImagePosition Top

The image position.

Available values:

Name Description
Left

An image is displayed at the element’s left, to the left of the text.

Top

An image is displayed at the element’s top, above the text.

Right

An image is displayed at the element’s right, to the right of the text.

Bottom

An image is displayed at the element’s bottom, below the text.

Remarks

Use the ImagePosition property to specify the position of gallery item images in the current RibbonGalleryBarItem object.

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