RectangleF.RectangleF

RectangleF(PointF, SizeF)

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

public RectangleF(PointF location, SizeF size)
ParameterTypeDescription
locationPointFA PointF that represents the upper-left corner of the rectangular region.
sizeSizeFA SizeF that represents the width and height of the rectangular region.

See Also


RectangleF(float, float, float, float)

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

public RectangleF(float x, float y, float width, float height)
ParameterTypeDescription
xSingleThe x-coordinate of the upper-left corner of the rectangle.
ySingleThe y-coordinate of the upper-left corner of the rectangle.
widthSingleThe width of the rectangle.
heightSingleThe height of the rectangle.

See Also