xtd 0.2.0

◆ contains() [3/3]

bool xtd::drawing::rectangle::contains ( int32  x,
int32  y 
) const
noexcept

Determines if the specified point is contained within this xtd::drawing::rectangle structure.

Parameters
xThe x-coordinate of the point to test.
yThe y-coordinate of the point to test.
Returns
This method returns true if the point defined by x and y is contained within this xtd::drawing::rectangle structure; otherwise false.
Remarks
The containing rectangle must be normalized for this method to return accurate results.