共用方式為


UICollectionViewSource.GetViewForSupplementaryElement 方法

定義

擷取用於指定 indexPath 之補充元素Kind 的 UICollectionReusableView。

[Foundation.Export("collectionView:viewForSupplementaryElementOfKind:atIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
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

傳回

屬性

適用於