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 属性。

适用于