RowDefinition.ActualHeight 屬性

定義

取得表示 RowDefinition 之計算高度的值。

public:
 property double ActualHeight { double get(); };
public double ActualHeight { get; }
member this.ActualHeight : double
Public ReadOnly Property ActualHeight As Double

屬性值

Double,表示計算的高度 (以與裝置無關的像素為單位)。 預設值為 0.0。

備註

當您在相同的程式碼範例中使用這些值時, MinHeight 此值會優先于 MaxHeight 值,而該值會優先于 Height 值。

當您加入或移除資料列或資料行時, ActualWidth 所有 ColumnDefinition 元素和 ActualHeight 所有 RowDefinition 元素的 會變成零,直到呼叫為止 Measure

適用於