Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSCollectionViewLayoutInvalidationContextMBS class.
NSCollectionViewLayoutInvalidationContextMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSCollectionViewLayoutInvalidationContextMBS.invalidateDecorationElementsOfKind(elementKind as String, indexPaths() as NSIndexPathMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
elementKind: A string that identifies the type of the decoration views. This parameter must not be nil or an empty string.
indexPaths: An array of NSIndexPathMBS objects. Each index path contains the section in which the decoration view appears.
Call this method when you want the layout object to recompute attributes for one or more decoration views. All of the views must be of the type specified by the elementKind parameter. The method adds the views you specify to the invalidatedDecorationIndexPaths property. You can call this method more than once for the specified elementKind value.
NSCollectionViewLayoutInvalidationContextMBS.invalidatedItemIndexPaths as NSIndexPathMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The set contains zero or more NSIndexPathMBS objects, each of which identifies an invalid item.
NSCollectionViewLayoutInvalidationContextMBS.invalidateItemsAtIndexPaths(indexPaths() as NSIndexPathMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
indexPaths: An array of NSIndexPathMBS objects. Each index path represents an item whose layout needs to be recomputed.
Call this method when you want the layout object to recompute attributes for a specific set of items. The items you provide are added to the invalidatedItemIndexPaths property. You can call this method more than once to create a merged set of items.
NSCollectionViewLayoutInvalidationContextMBS.invalidateSupplementaryElementsOfKind(elementKind as String, indexPaths() as NSIndexPathMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Collection View | MBS MacControls Plugin | 21.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
elementKind: A string that identifies the type of the supplementary views. This parameter must not be nil or an empty string.
indexPaths: An array of NSIndexPathMBS objects. Each index path contains the section in which the supplementary view appears.
Call this method when you want the layout object to recompute attributes for one or more supplementary views. All of the views must be of the type specified by the elementKind parameter. The method adds the views you specify to the invalidatedSupplementaryIndexPaths property. You can call this method more than once for the specified elementKind value.
The items on this page are in the following plugins: MBS MacControls Plugin.