Share via


UICollectionViewLayoutAttributes.CreateForCell Method

Definition

Overloads

Name Description
CreateForCell(NSIndexPath)
CreateForCell<T>(NSIndexPath)

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

CreateForCell(NSIndexPath)

[Foundation.Export("layoutAttributesForCellWithIndexPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UICollectionViewLayoutAttributes CreateForCell(Foundation.NSIndexPath indexPath);
[<Foundation.Export("layoutAttributesForCellWithIndexPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateForCell : Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

Parameters

indexPath
NSIndexPath

Returns

Attributes

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