System::Drawing::RectangleF::RectangleF constructor

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()

See Also

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)
ParameterTypeDescription
locationconst PointF&Specifies the location of the upper left corner of the rectangle
sizeconst SizeF&Specifies the width and hegiht of the rectangle

See Also

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

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

See Also