RowDefinition.Height 屬性

定義

取得 RowDefinition 項目的導出高度,或設定 RowDefinition 所定義之資料列的 GridLength 值。

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

相依性屬性資訊

識別碼欄位 HeightProperty
設定為 的中繼資料屬性 true

適用於