MonoTouch.Dialog.MultilineElement.GetHeight C# (CSharp) Method

GetHeight() public method

public GetHeight ( UITableView tableView, NSIndexPath indexPath ) : float
tableView UITableView
indexPath NSIndexPath
return float
		public virtual float GetHeight (UITableView tableView, NSIndexPath indexPath)
		{
			SizeF size = new SizeF (280, float.MaxValue);
			if (string.IsNullOrEmpty(Caption)) return Font.LineHeight+10;
			return tableView.StringSize (Caption, Font, size, UILineBreakMode.WordWrap).Height + 20;
		}