Share via


UITableView.NumberOfRowsInSection(IntPtr) Method

Definition

Returns the number of rows (table cells) in a given section.

[Foundation.Export("numberOfRowsInSection:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual IntPtr NumberOfRowsInSection(IntPtr section);
[<Foundation.Export("numberOfRowsInSection:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member NumberOfRowsInSection : nativeint -> nativeint
override this.NumberOfRowsInSection : nativeint -> nativeint

Parameters

section
IntPtr

nativeint

The index of the section to query. Section indexes start at zero.

Returns

IntPtr

nativeint

Number of rows in the section.

Attributes

Remarks

UITableView retrieves this value from the UITableViewSource (or UITableViewDataSource) and caches it.

Applies to