共用方式為


UITableView.AutomaticDimension 屬性

定義

表示與常數 UITableViewAutomaticDimension 相關聯的值

[Foundation.Field("UITableViewAutomaticDimension", "UIKit")]
public static nfloat AutomaticDimension { get; }
member this.AutomaticDimension : nfloat

屬性值

屬性

備註

當您想要 UITableView 使用預設值時,請從 UITableViewSource (或 UITableViewDelegate) 方法傳回這個值,以要求維度計量。 例如,從 GetHeightForHeader(UITableView, nint)GetHeightForFooter(UITableView, nint) 傳回這個常數,而資料表檢視將會自動使用高度,以分別容納或 TitleForFooter(UITableView, nint)TitleForHeader(UITableView, nint) 回的值。

適用於