RectHelper.Contains(Rect, Point) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 bool Contains(Rect target, Point point);
static bool Contains(Rect const& target, Point const& point);
public static bool Contains(Rect target, Point point);
function contains(target, point)
Public Shared Function Contains (target As Rect, point As Point) As Boolean
Parameters
Returns
Boolean
bool
true if point is within the target bounds; otherwise, false.