Share via


UICollectionView.DequeueReusableSupplementaryView 方法

定义

重载

DequeueReusableSupplementaryView(UICollectionElementKindSection, String, NSIndexPath)

返回 UICollectionReusableView

DequeueReusableSupplementaryView(UICollectionElementKindSection, NSString, NSIndexPath)

返回新分配或重用的补充 UICollectionReusableView

DequeueReusableSupplementaryView(NSString, NSString, NSIndexPath)

返回新分配或重用的补充 UICollectionReusableView

DequeueReusableSupplementaryView(NSString, String, NSIndexPath)

返回 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

参数

reuseIdentifier
String
indexPath
NSIndexPath

返回

适用于

DequeueReusableSupplementaryView(UICollectionElementKindSection, NSString, NSIndexPath)

返回新分配或重用的补充 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

参数

section
UICollectionElementKindSection

指定 UICollectionElementKindSection 需要哪种类型的补充视图。

reuseIdentifier
NSString
indexPath
NSIndexPath

指定 NSIndexPath 补充视图的位置的 。

返回

从重用 UICollectionReusableView 队列中新分配或回收的补充。

注解

应用程序开发人员必须在调用此方法之前使用 RegisterClassForSupplementaryView(Type, UICollectionElementKindSection, String) 或 注册类或 RegisterNibForSupplementaryView(UINib, UICollectionElementKindSection, String) nib 文件。

如果 T:UIKIt.UICollectionReusableView 不是新分配的,而是被回收的,则此方法将调用该单元格的 PrepareForReuse() 方法。

适用于

DequeueReusableSupplementaryView(NSString, NSString, NSIndexPath)

返回新分配或重用的补充 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

参数

kind
NSString

指定 NSString 需要哪种类型的补充视图 (例如“UICollectionElementKindSectionHeader”) 。

identifier
NSString

一个 NSString ,指定应用于补充视图的类型。

indexPath
NSIndexPath

指定 NSIndexPath 补充视图的位置的 。

返回

从重用 UICollectionReusableView 队列中新分配或回收的补充。

属性

适用于

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

参数

kind
NSString
reuseIdentifier
String
indexPath
NSIndexPath

返回

适用于