UIKit.UITableViewSource.GetHeightForRow Method
Called to determine the height of the row at indexPath.

Syntax

[Foundation.Export("tableView:heightForRowAtIndexPath:")]
public virtual nfloat GetHeightForRow (UITableView tableView, Foundation.NSIndexPath indexPath)

Parameters

tableView
Table view.
indexPath
Location of the row.

Returns

The height of the row (in points) as a float.

Remarks

This method allows rows to have different heights (for example, rows that contain a variable number of text lines). If this method is implemented, it overrides the UITableView.RowHeight property set on the table view, for the row at indexPath.

There are performance implications to using this method instead of UITableView.RowHeight: every time a table view is displayed it calls this method 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).

Declared in [UITableViewDelegate]

Requirements

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