Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCollectionViewLayoutAttributesMBS class.

NSCollectionViewLayoutAttributesMBS.alpha 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 transparency of the element.

Possible values are between 0.0 (fully transparent) and 1.0 (fully opaque). The default value is 1.0.
Transparent items continue to participate in hit testing for the collection view.
(Read and Write property)

NSCollectionViewLayoutAttributesMBS.frame 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 frame rectangle of the element.

The frame rectangle is measured in points and specified in the collection view’s coordinate system. Setting the value of this property also updates the value in the size property.
(Read and Write property)

NSCollectionViewLayoutAttributesMBS.Hidden as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Collection View MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value indicating whether the element is hidden.

The default value of this property is false. As an optimization, the collection view might not create the corresponding view when the value of this property is true. Because there might not be a view, hidden elements do not participate in hit testing for the collection view.
(Read and Write property)

NSCollectionViewLayoutAttributesMBS.indexPath as NSIndexPathMBS

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 index path of the element.

Use the index path to locate information about the item in your app’s data structures. For supplementary and decoration views, you must also use the representedElementKind property to identify the element.
(Read and Write property)

NSCollectionViewLayoutAttributesMBS.representedElementCategory 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 type of the element.

Use this property to distinguish whether the layout attributes apply to an item, a supplementary view, a decoration view, or another type of element presented by the collection view.
(Read only property)

NSCollectionViewLayoutAttributesMBS.representedElementKind as String

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 identifier for specific elements of your collection view interface.

For supplementary and decoration views, you use this string to distinguish between views in a given section. You also use this string to identify the intended purpose of the view in your collection view interface.
When the value of the representedElementCategory property is ElementCategoryItem, this property is nil.
(Read only property)

NSCollectionViewLayoutAttributesMBS.size 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 size of the element.

Setting the value of this property also updates the value in the frame property.
(Read and Write property)

NSCollectionViewLayoutAttributesMBS.zIndex 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 element’s position on the z axis.

Use this property to specify the front-to-back ordering of items during layout. Items with higher index values appear on top of those with lower values. Items with the same value have an undetermined order.
The default value of this property is 0.
(Read and Write property)

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


The biggest plugin in space...