Share via


UITableView.NumberOfRowsInSection(nint) 方法

定义

返回给定节中) 表单元格 (行数。

[Foundation.Export("numberOfRowsInSection:")]
public virtual nint NumberOfRowsInSection (nint section);
abstract member NumberOfRowsInSection : nint -> nint
override this.NumberOfRowsInSection : nint -> nint

参数

section
System.System.IntPtr System.nativeint

要查询的节的索引。 节索引从零开始。

返回

System.System.IntPtr System.nativeint

节中的行数。

属性

注解

UITableView 从 UITableViewSource (或 UITableViewDataSource) 检索此值并将其缓存。

适用于