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
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.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

ADD
Show:
© 2015 Microsoft