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

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.v19.1.dll


public int MaxItemWidth { get; set; }

Property Value

Type Default Description


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