Düzenle

Aracılığıyla paylaş


UICollectionView.GetLayoutAttributesForSupplementaryElement Method

Definition

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

Applies to