Skip to main content

BaseGallery.MaxItemWidth Property

Gets or sets an item’s maximum width in GalleryItemAutoSizeMode.Default auto-size mode.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public int MaxItemWidth { get; set; }

Property Value

Type Default Description
Int32 0

The maximum width of gallery items in GalleryItemAutoSizeMode.Default auto-size mode.


In GalleryItemAutoSizeMode.Default auto-size mode, the width of items can grow undesirably if lengthy text is assigned to these items. To limit the item width and wrap the text, set the MaxItemWidth property to the required value.

See Also