Rectangle

Rectangle constructor

Initializes a new instance of the Rectangle structure with the specified location and size.

public Rectangle(int x, int y, int width, int height)
ParameterTypeDescription
xInt32The x-coordinate of the upper-left corner of the rectangle.
yInt32The y-coordinate of the upper-left corner of the rectangle.
widthInt32The width of the rectangle.
heightInt32The height of the rectangle.

See Also