Düzenle

Aracılığıyla paylaş


UICollectionView.DequeueReusableSupplementaryView Method

Definition

Overloads

DequeueReusableSupplementaryView(UICollectionElementKindSection, String, NSIndexPath)

Returns a UICollectionReusableView.

DequeueReusableSupplementaryView(UICollectionElementKindSection, NSString, NSIndexPath)

Returns a newly-allocated or reused supplementary UICollectionReusableView.

DequeueReusableSupplementaryView(NSString, NSString, NSIndexPath)

Returns a newly-allocated or reused supplementary UICollectionReusableView.

DequeueReusableSupplementaryView(NSString, String, NSIndexPath)

Returns a UICollectionReusableView.

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

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 T:UIKIt.UICollectionReusableView is not newly allocated but is being recycled, this method will call that cell's PrepareForReuse() method.

Applies to

DequeueReusableSupplementaryView(NSString, NSString, NSIndexPath)

Returns a newly-allocated or reused supplementary UICollectionReusableView.

[Foundation.Export("dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:")]
public virtual UIKit.UICollectionReusableView DequeueReusableSupplementaryView (Foundation.NSString kind, Foundation.NSString identifier, Foundation.NSIndexPath indexPath);
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

A NSString specifying what kind of supplementary view is desired (e.g., "UICollectionElementKindSectionHeader").

identifier
NSString

A NSString that specifies what type should be used for the supplementary view.

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.

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