Share via


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

要評估的 Rect

傳回

Boolean

bool

如果指定的Rect相當於EmptyRect,則為true;否則為false

備註

請勿使用此方法來測試零區域;零區域的矩形不一定是 空白 矩形。 如需詳細資訊,請參閱 Empty 屬性。

適用於