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

Declaration

[DXCategory("Behavior")]
[DefaultValue(0)]
public int MaxItemWidth { get; set; }
<DXCategory("Behavior")>
<DefaultValue(0)>
Public Property MaxItemWidth As Integer

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