Back to Devexpress

BaseGallery.ImageSize Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-basegallery-354181e5.md

latest2.7 KB
Original Source

BaseGallery.ImageSize Property

Gets or sets the display size of gallery item images.

Namespace : DevExpress.XtraBars.Ribbon.Gallery

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public Size ImageSize { get; set; }
vb
<DXCategory("Behavior")>
Public Property ImageSize As Size

Property Value

TypeDescription
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

Images

FixedImageSize

UseMaxImageSize

ItemAutoSizeMode

ItemSize

ItemImageLayout

BaseGallery Class

BaseGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace