UIKit.UITableView.RowHeight Property
The height of each row in this UITableView.

Syntax

[get: Foundation.Export("rowHeight")]
[set: Foundation.Export("setRowHeight:")]
public virtual nfloat RowHeight { get; set; }

Value

Row height in points.

Remarks

This property can be set if the UITableViewSource.GetHeightForRow(UITableView, Foundation.NSIndexPath) has not been implemented. If the row height is not set explicity the table view uses a default value.

There are performance implications to using UITableViewSource.GetHeightForRow(UITableView, Foundation.NSIndexPath) instead of this property: every time a table view is displayed it calls UITableViewSource.GetHeightForRow(UITableView, Foundation.NSIndexPath) for each of its rows. This can result in poor performance when the table has a large number of rows (for example, 1000 rows or more).

If every row in a table has the same height, use this property. If rows have different heights (for example, they are sized around a variable amount of text) then UITableViewSource.GetHeightForRow(UITableView, Foundation.NSIndexPath) is more appropriate.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0