Skip to main content

TdxGalleryControlOptionsView.ColumnCount Property

Specifies the number of columns.

Declaration

property ColumnCount: Integer read; write; default 0;

Property Value

Type Default
Integer 0

Remarks

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

ColumnCount = 4 ColumnCount = 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