Back to Devexpress

BaseGallery.MaxItemWidth Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-basegallery-0ebacd8d.md

latest2.1 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Int320

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

ItemAutoSizeMode

ShowItemText

Caption

Description

BaseGallery Class

BaseGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace