UIKit.UICollectionViewLayoutAttributes.CreateForCell Method
Creates a UICollectionViewLayoutAttributes for the cell at the specified index.|Creates a UICollectionViewLayon

Syntax

[Foundation.Export("layoutAttributesForCellWithIndexPath:")]
public static UICollectionViewLayoutAttributes CreateForCell (Foundation.NSIndexPath indexPath)

Parameters

indexPath
The index path describing the cell to create a layout attributes object for.

Returns

A layout attributes object representing the cell at the specified index path.

Remarks

This method will always return a UICollectionViewLayoutAttributes. If you've subclassed UICollectionViewLayoutAttributes and need to return an instance of the subclass, use UICollectionViewLayoutAttributes.CreateForCell`1 instead. This method is equivalent to calling CreateForCell<UICollectionViewLayoutAttributes>.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0