UITableViewDataSource.NumberOfSections(UITableView) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回顯示資料所需的區段數目。
[Foundation.Export("numberOfSectionsInTableView:")]
public virtual nint NumberOfSections (UIKit.UITableView tableView);
abstract member NumberOfSections : UIKit.UITableView -> nint
override this.NumberOfSections : UIKit.UITableView -> nint
參數
- tableView
- UITableView
顯示區段的資料表檢視。
傳回
System.System.IntPtr
System.nativeint
顯示資料所需的區段數目。 預設值為 1 (資料表必須至少有一個區段) 。
- 屬性