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.

Equivalent WinUI method: Microsoft.UI.Xaml.RectHelper.GetIsEmpty.

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.

Applies to