Share via


Rect.Empty 属性

定义

获取一个特殊值,该值表示没有位置或区域的矩形。

public:
 static property Windows::Foundation::Rect Empty { Windows::Foundation::Rect get(); };
public static Windows.Foundation.Rect Empty { get; }
static member Empty : Windows.Foundation.Rect
Public Shared ReadOnly Property Empty As Rect

属性值

空矩形,其 XY 属性值为 PositiveInfinityWidthHeight 属性值为 NegativeInfinity

注解

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

有关此成员的详细信息,请参阅 <.NET Framework API 参考中的 System.Windows.Rect.Empty?displayProperty=nameWithType>。

适用于