Share via


UITableView.AutomaticDimension Property

Definition

Represents the value associated with the constant UITableViewAutomaticDimension

[Foundation.Field("UITableViewAutomaticDimension", "UIKit")]
public static System.Runtime.InteropServices.NFloat AutomaticDimension { get; }
[<Foundation.Field("UITableViewAutomaticDimension", "UIKit")>]
static member AutomaticDimension : System.Runtime.InteropServices.NFloat

Property Value

Attributes

Remarks

Return this value from UITableViewSource (or UITableViewDelegate) methods that request dimension metrics when you want the UITableView to use a default value. For example, return this constant from GetHeightForHeader(UITableView, IntPtr) or GetHeightForFooter(UITableView, IntPtr) and the table view will use automatically use a height that accomodates the value returned from TitleForHeader(UITableView, IntPtr) or TitleForFooter(UITableView, IntPtr) respectively.

Applies to