Rect.Top 属性

定义

获取矩形顶边的 y 轴位置。Gets the y-axis position of the top of the rectangle.

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

属性值

Double

矩形顶边的 y 轴位置。The y-axis position of the top of the rectangle.

注解

此结构表示 Windows 运行时 (WinRT) 结构的 .NET 投影 RectThis struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. 有关详细信息,请参阅 UWP API 参考中的 RectFor more information, see Rect in the UWP API reference.

有关此成员的详细信息和示例,请参阅 Rect.Top .NET FRAMEWORK API 参考中的。For more information and examples of this member, see Rect.Top in the .NET Framework API reference. (示例演示 WPF 用法,可能无法直接转换为 UWP XAML。 ) (Examples show WPF usage and might not translate directly to UWP XAML.)

适用于