Edit

Share via


UICollectionView.GetLayoutAttributesForItem(NSIndexPath) Method

Definition

Returns the layout information for the specified UICollectionViewCell.

[Foundation.Export("layoutAttributesForItemAtIndexPath:")]
public virtual UIKit.UICollectionViewLayoutAttributes GetLayoutAttributesForItem (Foundation.NSIndexPath indexPath);
abstract member GetLayoutAttributesForItem : Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes
override this.GetLayoutAttributesForItem : Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

Parameters

indexPath
NSIndexPath

A NSIndexPath indicating the desired cell being laid out.

Returns

A UICollectionViewLayoutAttributes object specifying layout attributes. Returns null if the indexPath specifies a non-existent index.

Attributes

Applies to