Back to Devexpress

TdxGalleryControlOptionsView.ColumnCount Property

vcl-dxgallerycontrol-dot-tdxgallerycontroloptionsview.md

latest1.8 KB
Original Source

TdxGalleryControlOptionsView.ColumnCount Property

Specifies the number of columns.

Declaration

delphi
property ColumnCount: Integer read; write; default 0;

Property Value

TypeDefault
Integer0

Remarks

The following table shows the gallery control when the ColumnCount property is set to different values.

ColumnCount = 4ColumnCount = 6

By default the ColumnCount property does not limit the number of visible column. If the ColumnCount property is set to 0 , the actual number of columns depends upon the AutoSizeMode property value:

  • If the AutoSizeMode property value is set to asAutoSize or asAutoWidth , the gallery will contain five columns;

  • If the AutoSizeMode property value is set to asAutoHeight or asNone , the number of columns will be automatically calculated to fit items into the gallery. TdxGalleryControl will display a vertical scrollbar if required.

The default value of the ColumnCount property is 0.

See Also

TdxGalleryControlOptionsView.ColumnAutoWidth

TdxGalleryControlOptionsView Class

TdxGalleryControlOptionsView Members

dxGalleryControl Unit