共用方式為


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

傳回

適用於