Rect.Empty 属性

定义

获取一个特殊值,该值表示没有位置或区域的矩形。Gets a special value that represents a rectangle with no position or area.

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

属性值

Rect

空矩形,其 XY 属性值为 PositiveInfinityWidthHeight 属性值为 NegativeInfinityThe empty rectangle, which has X and Y property values of PositiveInfinity, and has Width and Height property values of NegativeInfinity.

注解

此结构表示 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.

有关此成员的详细信息,请参阅 .NET Framework API 参考中的 <>? displayProperty = Namewithtype>。For more information about this member, see <System.Windows.Rect.Empty?displayProperty=nameWithType> in the .NET Framework API reference.

适用于