Size.Height 属性

定义

获取或设置此 Size 实例的高度。

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

属性值

Height的此实例的 Size,以像素为单位。 默认值为 0。 该值不能为负数。

例外

指定小于 0 的值。

注解

此结构表示 Windows 运行时 (WinRT) Size 结构的 .NET 投影。 有关详细信息,请参阅 UWP API 参考中的 大小

适用于