Determines if the point is within the rectangle.
Syntax

[C#]

bool Contains(int x, int y);
bool Contains(Point pt);
bool Contains(Rectangle rect);

[Visual Basic]

Function Contains(x As Integer, y As Integer) As Boolean
Function Contains(pt As Point) As Boolean
Function Contains(rect As Rectangle) As Boolean
Params
Name Description
x The x coordinate.
y The y coordinate.
pt The point to test.
rect The rectangle to test.
return True if point is contained.
Notes

None.

Example

None.