UICollectionView.GetLayoutAttributesForSupplementaryElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the layout information for the specified supplementary view.
[Foundation.Export("layoutAttributesForSupplementaryElementOfKind:atIndexPath:")]
public virtual UIKit.UICollectionViewLayoutAttributes GetLayoutAttributesForSupplementaryElement (Foundation.NSString elementKind, Foundation.NSIndexPath indexPath);
abstract member GetLayoutAttributesForSupplementaryElement : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes
override this.GetLayoutAttributesForSupplementaryElement : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes
Parameters
- elementKind
- NSString
A NSString specifying what kind of of supplementary view is desired (e.g., "UICollectionElementKindSectionHeader").
- indexPath
- NSIndexPath
The NSIndexPath specifying the location of the supplementary view.
Returns
A UICollectionViewLayoutAttributes object specifying layout attributes. Returns null
if the indexPath
specifies a non-existent index.
- Attributes