Rectangle Constructor
Initializes a new instance of Rectangle.
Syntax
'Declaration
Public Sub New ( _
x As Integer, _
y As Integer, _
width As Integer, _
height As Integer _
)
public Rectangle (
int x,
int y,
int width,
int height
)
public:
Rectangle(
int x,
int y,
int width,
int height
)
Parameters
- x
Type: Int32
The x-coordinate of the rectangle. - y
Type: Int32
The y-coordinate of the rectangle. - width
Type: Int32
Width of the rectangle. - height
Type: Int32
Height of the rectangle.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Rectangle Structure
Rectangle Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone