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

BaseGallery.ColumnCount Property

Gets or sets the (maximum) number of columns in the gallery.

Namespace: DevExpress.XtraBars.Ribbon.Gallery

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(5)]
public int ColumnCount { get; set; }

Property Value

Type Default Description
Int32 5

An integer value that specifies the (maximum) number of columns in the gallery.

Remarks

For an InRibbonGallery, the ColumnCount property specifies the number of columns displayed in the gallery, and so limits the gallery’s width.

For an InDropDownGallery and GalleryControlGallery, the ColumnCount property is used according to the current auto-size mode. See StandaloneGallery.AutoSize.

By default, the ColumnCount property doesn’t limit the number of visible columns. You can limit the number of visible columns for a GalleryControl‘s gallery via the ColumnCount property. The GalleryControlGallery.AutoFitColumns property must be set to false to do this.

By default, GalleryControlGallerys are oriented vertically. They can also be oriented horizontally via the GalleryControlGallery.Orientation property. In this instance, the meaning of the ColumnCount property is transposed as well. So, the ColumnCount property will specify the number of rows, not columns.

See Also