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

GalleryControlGallery.AutoFitColumns Property

Gets or sets whether changing the gallery’s width automatically adds/removes columns.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

[DXCategory("Layout")]
[DefaultValue(true)]
public bool AutoFitColumns { get; set; }

Property Value

Type Default Description
Boolean **true**

true if changing the gallery’s width automatically adds/removes columns; otherwise, false.

Remarks

If the AutoFitColumns property is set to false, the maximum number of columns in the gallery is specified by the BaseGallery.ColumnCount property.

See Also