Skip to main content

BaseGallery.ImageSize Property

Gets or sets the display size of gallery item images.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DXCategory("Behavior")]
public Size ImageSize { get; set; }

Property Value

Type Description
Size

A System.Drawing.Size structure which specifies the display size of gallery item images.

Remarks

If the BaseGallery.FixedImageSize property is set to false, setting the ImageSize property has no effect. In this instance, item images will have their original size. If the ImageSize property is set to System.Drawing.Size.Empty, the size of gallery item images is 16x16 pixels.

If the BaseGallery.UseMaxImageSize property is set to true, all gallery item images will have the same display size, matching the size of the biggest image. The ImageSize and BaseGallery.ImageSize properties are ignored if the BaseGallery.UseMaxImageSize property is set to true.

The way images are aligned or stretched within the image area is controlled by BaseGallery.ItemImageLayout.

See Also