Rect.Height 屬性

定義

取得或設定矩形的高度。

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

屬性值

值,表示矩形的高度。 預設值是 0。

備註

此結構代表 Windows 執行階段 (WinRT) Rect 結構的 .NET 投影。 如需詳細資訊,請參閱 UWP API 參考中的 Rect

如需此成員的詳細資訊和範例,請參閱 < .NET Framework API 參考中的 System.Windows.Rect.Height?displayProperty=nameWithType > 。 (範例顯示 WPF 使用方式,可能不會直接轉譯為 UWP XAML.)

適用於