RectangleF()

RectangleF::RectangleF() constructor

Constructs a new instance of RectangleF object that represents a rectangle with X and Y coordinates and width and hegiht values set to 0.

System::Drawing::RectangleF::RectangleF()

RectangleF::RectangleF(float, float, float, float) constructor

Constructs a new instance of RectangleF object that represents a rectangle with the specified coordinates of its upper left corner and width and height.

System::Drawing::RectangleF::RectangleF(float x, float y, float width, float height)

Arguments

ParameterTypeDescription
xfloatA value of the X coordinate of the upper left corner of the rectangle
yfloatA value of the Y coordinate of the upper left corner of the rectangle
widthfloatThe width of the rectangle
heightfloatThe height of the rectangle

RectangleF::RectangleF(const PointF&, const SizeF&) constructor

Constructs a new instance of RectangleF object that represents a rectangle with the coordinates of its upper left corner specified as an instance of PointF class and its width and height as an instance of SizeF class.

System::Drawing::RectangleF::RectangleF(const PointF &location, const SizeF &size)

Arguments

ParameterTypeDescription
locationconst PointF&Specifies the location of the upper left corner of the rectangle
sizeconst SizeF&Specifies the width and hegiht of the rectangle

RectangleF::RectangleF(const Rectangle&) constructor

Constructs a new instance of RectangleF object that represents the rectangle equivalent to the specified one.

System::Drawing::RectangleF::RectangleF(const Rectangle &rect)

Arguments

ParameterTypeDescription
rectconst Rectangle&An instance of Rectangle class that specifies the position and size of the rectangle to be represented by the object being constructed

See Also