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.v24.2.dll

Declaration

[DefaultValue(0)]
[DXCategory("Behavior")]
public int MaxItemWidth { get; set; }

Property Value

Type Default Description
Int32 0

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

Remarks

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