Back to Devexpress

BaseGallery.ItemAutoSizeMode Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-basegallery-c0d9752d.md

latest3.3 KB
Original Source

BaseGallery.ItemAutoSizeMode Property

Gets or sets the auto-size mode of gallery items.

Namespace : DevExpress.XtraBars.Ribbon.Gallery

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(GalleryItemAutoSizeMode.Default)]
[DXCategory("Behavior")]
public GalleryItemAutoSizeMode ItemAutoSizeMode { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(GalleryItemAutoSizeMode.Default)>
Public Property ItemAutoSizeMode As GalleryItemAutoSizeMode

Property Value

TypeDefaultDescription
GalleryItemAutoSizeModeDefault

The auto-size mode of gallery items.

|

Available values:

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.

|

Remarks

See the GalleryItemAutoSizeMode topic for information on available auto-size modes.

See Also

FixedImageSize

ImageSize

ItemSize

UseMaxImageSize

MaxItemWidth

BaseGallery Class

BaseGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace