UICollectionViewController.NumberOfSections(UICollectionView) 方法

定义

UICollectionView 中的节数。

[Foundation.Export("numberOfSectionsInCollectionView:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual nint NumberOfSections (UIKit.UICollectionView collectionView);
abstract member NumberOfSections : UIKit.UICollectionView -> nint
override this.NumberOfSections : UIKit.UICollectionView -> nint

参数

collectionView
UICollectionView

此视图控制器管理的集合视图。

返回

System.System.IntPtr System.nativeint

以 int 形式表示的节数。

属性

适用于