RectHelper.GetIsEmpty(Rect) 方法

定义

返回指定的 Rect 是否等效于 EmptyRect。 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

要评估的 Rect

返回

Boolean

bool

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

注解

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

适用于