Skip to main content
A newer version of this page is available. .

BaseGallery.ImageSize Property

Gets or sets the display size of gallery item images.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

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

Property Value

Type Description
Size

A 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 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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageSize property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also