Rectangle.Contains Method (Int32, Int32)
Determines whether this Rectangle contains a specified point represented by its x- and y-coordinates.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public bool Contains (
int x,
int y
)
Parameters
- x
The x-coordinate of the specified point. - y
The y-coordinate of the specified point.
Return Value
true if the specified point is contained within this Rectangle; false otherwise.
See Also
Reference
Rectangle Structure
Rectangle Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista