Düzenle

Aracılığıyla paylaş


UICollectionViewLayoutAttributes.CreateForCell Method

Definition

Overloads

CreateForCell(NSIndexPath)

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

CreateForCell<T>(NSIndexPath)

Creates a layout attributes object of the specified type for the cell at the specified index path.

CreateForCell(NSIndexPath)

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

[Foundation.Export("layoutAttributesForCellWithIndexPath:")]
public static UIKit.UICollectionViewLayoutAttributes CreateForCell (Foundation.NSIndexPath indexPath);
static member CreateForCell : Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

Parameters

indexPath
NSIndexPath

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.

Attributes

Remarks

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

Applies to

CreateForCell<T>(NSIndexPath)

Creates a layout attributes object of the specified type for the cell at the specified index path.

public static T CreateForCell<T> (Foundation.NSIndexPath indexPath) where T : UIKit.UICollectionViewLayoutAttributes;

Type Parameters

T

The type of the layout attributes object to return.

Parameters

indexPath
NSIndexPath

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

Returns

T

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

Remarks

Use this method to create a layout attributes object of a UICollectionViewLayoutAttributes subclass.

Applies to