UICollectionViewLayoutAttributes.CreateForCell Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.