共用方式為


UICollectionViewDataSource.GetViewForSupplementaryElement 方法

定義

擷取指定之 indexPath 上所指定元素的 UICollectionReusableView。

[Foundation.Export("collectionView:viewForSupplementaryElementOfKind:atIndexPath:")]
public virtual UIKit.UICollectionReusableView GetViewForSupplementaryElement (UIKit.UICollectionView collectionView, Foundation.NSString elementKind, Foundation.NSIndexPath indexPath);
abstract member GetViewForSupplementaryElement : UIKit.UICollectionView * Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionReusableView
override this.GetViewForSupplementaryElement : UIKit.UICollectionView * Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionReusableView

參數

collectionView
UICollectionView

產生要求的集合檢視。

elementKind
NSString
indexPath
NSIndexPath

傳回

屬性

適用於