Bearbeiten

Freigeben über


UICollectionViewLayoutAttributes.CreateForSupplementaryView Method

Definition

Overloads

CreateForSupplementaryView(NSString, NSIndexPath)

Creates a layout attributes object representing the supplementary view.

CreateForSupplementaryView(UICollectionElementKindSection, NSIndexPath)

Creates a layout attributes object representing the supplementary view.

CreateForSupplementaryView<T>(NSString, NSIndexPath)

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

CreateForSupplementaryView<T>(UICollectionElementKindSection, NSIndexPath)

Creates a layout attributes object representing the supplementary view.

CreateForSupplementaryView(NSString, NSIndexPath)

Creates a layout attributes object representing the supplementary view.

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

Parameters

kind
NSString

The kind identifier for the supplementary view.

indexPath
NSIndexPath

An index path for the supplementary view.

Returns

A layout attributes object that represents the supplementary view.

Attributes

Remarks

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

Applies to

CreateForSupplementaryView(UICollectionElementKindSection, NSIndexPath)

Creates a layout attributes object representing the supplementary view.

public static UIKit.UICollectionViewLayoutAttributes CreateForSupplementaryView (UIKit.UICollectionElementKindSection section, Foundation.NSIndexPath indexPath);
static member CreateForSupplementaryView : UIKit.UICollectionElementKindSection * Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

Parameters

section
UICollectionElementKindSection

The supplementary view kind.

indexPath
NSIndexPath

An index path for the supplementary view.

Returns

A layout attributes object that represents the supplementary view.

Remarks

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

Applies to

CreateForSupplementaryView<T>(NSString, NSIndexPath)

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

public static T CreateForSupplementaryView<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 supplementary view.

indexPath
NSIndexPath

An index path for the supplementary view.

Returns

T

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

Remarks

Use this method to create a layout attributes object of a specific type representing a supplementary view of the specified.

Applies to

CreateForSupplementaryView<T>(UICollectionElementKindSection, NSIndexPath)

Creates a layout attributes object representing the supplementary view.

public static T CreateForSupplementaryView<T> (UIKit.UICollectionElementKindSection section, Foundation.NSIndexPath indexPath) where T : UIKit.UICollectionViewLayoutAttributes;
static member CreateForSupplementaryView : UIKit.UICollectionElementKindSection * Foundation.NSIndexPath -> 'T (requires 'T :> UIKit.UICollectionViewLayoutAttributes)

Type Parameters

T

The type of the layout attributes object to return.

Parameters

section
UICollectionElementKindSection

The supplementary view kind.

indexPath
NSIndexPath

An index path for the supplementary view.

Returns

T

A layout attributes object that represents the supplementary view.

Remarks

Use this method to create a layout attributes object of a specific type representing a supplementary view of the specified.

Applies to