SizeHelper.GetIsEmpty(Size) 方法

定義

傳回指定的 Size 是否相當於 空白大小。 C# 和 Microsoft Visual Basic 程式碼應該改用 Size.IsEmpty

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

參數

target
Size

要評估 的大小

傳回

Boolean

bool

如果指定的Size相當於空白大小,則為true;否則為false

備註

請勿使用這個方法來測試零區域;具有零區域的大小不一定是 空白 大小。 如需詳細資訊,請參閱 Empty 屬性。

適用於