Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCollectionViewGridLayoutMBS class.

NSCollectionViewGridLayoutMBS.margins as NSEdgeInsetsMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The amount of empty space (in points) around the grid’s content.

The default value of this property is zeros. Changing this property to a new value invalidates the layout.
(Read and Write property)

NSCollectionViewGridLayoutMBS.maximumItemSize as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The largest allowable size for an item’s view.

Use this property to limit the maximum size of items displayed in the grid. The default value of this property is (0.0, 0.0), which imposes no maximum size for items.
(Read and Write property)

NSCollectionViewGridLayoutMBS.maximumNumberOfColumns as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The maximum number of columns to display in the collection view’s visible area.

Use this value to specify the maximum number of columns that should be visible in the collection view at any given time. The grid layout object uses this value during layout to configure the position and spacing of items. The default value of this property is 0, which means that there is no maximum number of columns.
(Read and Write property)

NSCollectionViewGridLayoutMBS.maximumNumberOfRows as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The maximum number of rows to display in the collection view’s visible area.

Use this value to specify the maximum number of rows to display in the collection view at any given time. The grid layout object uses this value during layout to configure the position and spacing of items. The default value of this property is 0, which means that there is no maximum number of rows.
(Read and Write property)

NSCollectionViewGridLayoutMBS.minimumInteritemSpacing as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The minimum spacing (in points) to use between items in the same row or column.

For a vertically scrolling layout, the value represents the minimum spacing between items in the same row. For a horizontally scrolling layout, the value represents the minimum spacing between items in the same column. The layout object uses this spacing only to compute how many items can fit in a single row or column. The actual spacing may be increased after the number of items has been determined.
The default value of this property is 0.0.
(Read and Write property)

NSCollectionViewGridLayoutMBS.minimumItemSize as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The smallest allowable size for an item’s view.

Use this property to ensure that items have a minimum size when displayed in the grid. The default value of this property is (0.0, 0.0), which imposes no minimum size for items.
(Read and Write property)

NSCollectionViewGridLayoutMBS.minimumLineSpacing as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The minimum spacing (in points) to use between rows or columns.

For a vertically scrolling layout, the value represents the minimum spacing between successive rows. For a horizontally scrolling layout, the value represents the minimum spacing between successive columns. This spacing is not applied to the space between the header view and the first line or between the last line and the footer view.
The default value of this property is 0.0.
(Read and Write property)

The items on this page are in the following plugins: MBS MacControls Plugin.


The biggest plugin in space...