RectHelper.Contains(Rect, Point) RectHelper.Contains(Rect, Point) RectHelper.Contains(Rect, Point) RectHelper.Contains(Rect, Point) Method

Definition

Returns whether a given Point is within the bounds of a given Rect, for a shared coordinate reference. C# and Microsoft Visual Basic code should use Rect.Contains instead.

public : static Platform::Boolean Contains(Rect target, Point point)
static bool Contains(Rect target, Point point) const;
public static bool Contains(Rect target, Point point)
Public Shared Function Contains(target As Rect, point As Point) As bool

Parameters

target
Rect Rect

The Rect to evaluate.

point
Point Point

The Point to check for containment.

Returns

bool bool

true if point is within the target bounds; otherwise, false.