Share via


UICollectionViewLayoutAttributes.CreateForDecorationView Method

Definition

Overloads

Name Description
CreateForDecorationView(NSString, NSIndexPath)
CreateForDecorationView<T>(NSString, NSIndexPath)

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

CreateForDecorationView(NSString, NSIndexPath)

[Foundation.Export("layoutAttributesForDecorationViewOfKind:withIndexPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UICollectionViewLayoutAttributes CreateForDecorationView(Foundation.NSString kind, Foundation.NSIndexPath indexPath);
[<Foundation.Export("layoutAttributesForDecorationViewOfKind:withIndexPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateForDecorationView : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

Parameters

kind
NSString
indexPath
NSIndexPath

Returns

Attributes

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