RowDefinition.Height 屬性

定義

取得元素的計算高度 RowDefinition ,或設定 GridLengthRowDefinition定義的列值。

public:
 property System::Windows::GridLength Height { System::Windows::GridLength get(); void set(System::Windows::GridLength value); };
public System.Windows.GridLength Height { get; set; }
member this.Height : System.Windows.GridLength with get, set
Public Property Height As GridLength

屬性值

GridLength 代表該列的高度。 預設值為 1.0。

備註

預設的 GridUnitTypeStar

當你在同一程式碼範例中使用這些值時, MinHeight 值優先於值本身 MaxHeight ,而值又優先於值本身 Height

當你新增或移除列或欄時,ActualWidth對於所有ColumnDefinition元素和所有元素的ActualHeight集合RowDefinition,直到Measure被呼叫為止。

相依財產資訊

Item 價值觀
識別碼欄位 HeightProperty
元資料屬性設為 true None

適用於