Sdílet prostřednictvím


RectHelper.GetIsEmpty(Rect) Method

Definition

Returns whether a specified Rect is equivalent to an Empty Rect. C# and Microsoft Visual Basic code should use Rect.IsEmpty instead.

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

Parameters

target
Rect

The Rect to evaluate.

Returns

Boolean

bool

true if the specified Rect is equivalent to an Empty Rect; otherwise, false.

Remarks

Do not use this method to test for zero area; a rectangle with zero area is not necessarily the Empty rectangle. For more information, see the Empty property.

Applies to