Share via


UICollectionView.DequeueReusableSupplementaryView Method

Definition

Overloads

DequeueReusableSupplementaryView(NSString, NSString, NSIndexPath)

[Foundation.Export("dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UICollectionReusableView DequeueReusableSupplementaryView(Foundation.NSString kind, Foundation.NSString identifier, Foundation.NSIndexPath indexPath);
[<Foundation.Export("dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member DequeueReusableSupplementaryView : Foundation.NSString * Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionReusableView
override this.DequeueReusableSupplementaryView : Foundation.NSString * Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionReusableView

Parameters

kind
NSString
identifier
NSString
indexPath
NSIndexPath

Returns

Attributes

Applies to

DequeueReusableSupplementaryView(NSString, String, NSIndexPath)

public UIKit.UICollectionReusableView DequeueReusableSupplementaryView(Foundation.NSString kind, string reuseIdentifier, Foundation.NSIndexPath indexPath);
member this.DequeueReusableSupplementaryView : Foundation.NSString * string * Foundation.NSIndexPath -> UIKit.UICollectionReusableView

Parameters

kind
NSString
reuseIdentifier
String
indexPath
NSIndexPath

Returns

Applies to

DequeueReusableSupplementaryView(UICollectionElementKindSection, NSString, NSIndexPath)

Returns a newly-allocated or reused supplementary UICollectionReusableView.

public Foundation.NSObject DequeueReusableSupplementaryView(UIKit.UICollectionElementKindSection section, Foundation.NSString reuseIdentifier, Foundation.NSIndexPath indexPath);
member this.DequeueReusableSupplementaryView : UIKit.UICollectionElementKindSection * Foundation.NSString * Foundation.NSIndexPath -> Foundation.NSObject

Parameters

section
UICollectionElementKindSection

A UICollectionElementKindSection specifying what kind of supplementary view is desired.

reuseIdentifier
NSString
indexPath
NSIndexPath

The NSIndexPath specifying the location of the supplementary view.

Returns

A supplementary UICollectionReusableView that is either newly allocated or recycled from the reuse queue..

Remarks

The application developer must have registered a class or nib file using either RegisterClassForSupplementaryView(Type, UICollectionElementKindSection, String) or RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, String) prior to calling this method.

If the UICollectionReusableView is not newly allocated but is being recycled, this method will call that cell's PrepareForReuse() method.

Applies to

DequeueReusableSupplementaryView(UICollectionElementKindSection, String, NSIndexPath)

public UIKit.UICollectionReusableView DequeueReusableSupplementaryView(UIKit.UICollectionElementKindSection kind, string reuseIdentifier, Foundation.NSIndexPath indexPath);
member this.DequeueReusableSupplementaryView : UIKit.UICollectionElementKindSection * string * Foundation.NSIndexPath -> UIKit.UICollectionReusableView

Parameters

reuseIdentifier
String
indexPath
NSIndexPath

Returns

Applies to