Back to Devexpress

BaseGallery.ColumnCount Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-gallery-dot-basegallery-f85fe6a3.md

latest3.2 KB
Original Source

BaseGallery.ColumnCount Property

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

Namespace : DevExpress.XtraBars.Ribbon.Gallery

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Int325

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

RowCount

AutoSize

ShowScrollBar

AutoFitColumns

SizeMode

BaseGallery Class

BaseGallery Members

DevExpress.XtraBars.Ribbon.Gallery Namespace