RectHelper.GetIsEmpty(Rect) 方法

定义

返回指定的 Rect 是否等效于 Rect。 C# 和 Microsoft Visual Basic 代码应改用 Rect.IsEmpty

public:
 static bool GetIsEmpty(Rect target);
 static bool GetIsEmpty(Rect const& target);
public static bool GetIsEmpty(Rect target);
function getIsEmpty(target)
Public Shared Function GetIsEmpty (target As Rect) As Boolean

参数

target
Rect

要计算的 矩形

返回

Boolean

bool

如果指定的 Rect 等效于Rect,则为 true;否则为 false

注解

请勿使用此方法测试零区域;带零区域的矩形不一定是 矩形。 有关详细信息,请参阅 Empty 属性。

适用于