Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Rectangle Constructor
Collapse the table of content
Expand the table of content

Rectangle Constructor

Initializes a new instance of Rectangle.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public Rectangle (
         int x,
         int y,
         int width,
         int height
)

Parameters

x
The x-coordinate of the rectangle.
y
The y-coordinate of the rectangle.
width
Width of the rectangle.
height
Height of the rectangle.

Xbox 360, Windows XP SP2, Windows Vista

Show:
© 2015 Microsoft