UICollectionViewLayoutAttributes.CreateForDecorationView Method

Definition

Overloads

CreateForDecorationView(NSString, NSIndexPath)

Creates a layout attributes object representing the decoration view.

CreateForDecorationView<T>(NSString, NSIndexPath)

Creates a layout attributes object of a specific type representing the decoration view.

CreateForDecorationView(NSString, NSIndexPath)

Creates a layout attributes object representing the decoration view.

[Foundation.Export("layoutAttributesForDecorationViewOfKind:withIndexPath:")]
public static UIKit.UICollectionViewLayoutAttributes CreateForDecorationView (Foundation.NSString kind, Foundation.NSIndexPath indexPath);
static member CreateForDecorationView : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

Parameters

kind
NSString

The kind identifier for the decoration view.

indexPath
NSIndexPath

An index path related to the decoration view.

Returns

A layout attributes object that represents the decoration view.

Attributes

Remarks

Use this method to create a layout attributes object representing a decoration view of a specific kind. If you've subclassed UICollectionViewLayoutAttributes and need to return an instance of the subclass, use CreateForDecorationView(NSString, NSIndexPath) instead. This method is equivalent to calling CreateForDecorationView<UICollectionViewLayoutAttributes>.

Applies to

CreateForDecorationView<T>(NSString, NSIndexPath)

Creates a layout attributes object of a specific type representing the decoration view.

public static T CreateForDecorationView<T> (Foundation.NSString kind, Foundation.NSIndexPath indexPath) where T : UIKit.UICollectionViewLayoutAttributes;

Type Parameters

T

The type of the layout attributes object to return.

Parameters

kind
NSString

The kind identifier for the decoration view.

indexPath
NSIndexPath

An index path related to the decoration view.

Returns

T

A layout attributes object of a specific type that represents the decoration view.

Remarks

Use this method to create a layout attributes object of a specific type representing a decoration view of a specific kind.

Applies to