语言

Rect.IsEmpty 属性

定义

获取一个值,该值指示矩形是否为 Empty 矩形。

public:
 property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean

属性值

true 如果矩形是矩形, Empty 则为矩形;否则为 false。

注解

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

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

适用于