RectangleF

RectangleF constructor (1 of 2)

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

public RectangleF(PointF location, SizeF size)
Parameter Type Description
location PointF A PointF that represents the upper-left corner of the rectangular region.
size SizeF A SizeF that represents the width and height of the rectangular region.

See Also


RectangleF constructor (2 of 2)

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

public RectangleF(float x, float y, float width, float height)
Parameter Type Description
x Single The x-coordinate of the upper-left corner of the rectangle.
y Single The y-coordinate of the upper-left corner of the rectangle.
width Single The width of the rectangle.
height Single The height of the rectangle.

See Also