共用方式為


UITableViewSource.NumberOfSections(UITableView) 方法

定義

傳回顯示資料所需的區段數目。

[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 (資料表必須至少有一個區段) 。

屬性

備註

在 [UITableViewDataSource] 中宣告

適用於