Back to Devexpress

GalleryItemAutoSizeMode Enum

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-cd31e938.md

latest2.6 KB
Original Source

GalleryItemAutoSizeMode Enum

Contains values that specify how items are resized within a BaseGallery.

Namespace : DevExpress.XtraBars.Ribbon.Gallery

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public enum GalleryItemAutoSizeMode
vb
Public Enum GalleryItemAutoSizeMode

Members

NameDescription
Default

Auto size mode. The size of gallery items is calculated to fit their contents while taking into account the BaseGallery.FixedImageSize and BaseGallery.ImageSize properties. You can limit the width of gallery items in this mode via the BaseGallery.MaxItemWidth property.

| | Vertical |

Auto height mode. The height of gallery items is automatically calculated to vertically fit an item’s contents while taking into account the BaseGallery.FixedImageSize and BaseGallery.ImageSize properties. The width of items is specified by the Width attribute of the BaseGallery.ItemSize property.

| | None |

Auto sizing is disabled. The size of gallery items is fixed and specified by the BaseGallery.ItemSize property.

|

The following properties accept/return GalleryItemAutoSizeMode values:

Remarks

Use the BaseGallery.ItemAutoSizeMode property to enable auto-sizing of gallery items.

See Also

ItemAutoSizeMode

DevExpress.XtraBars.Ribbon.Gallery Namespace