RectangleF constructor

init

Constructs a new instance of RectangleF

def __init__(self):
    ...

init

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

def __init__(self, location, 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.

init

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

def __init__(self, x, y, width, height):
    ...
ParameterTypeDescription
xfloatThe x-coordinate of the upper-left corner of the rectangle.
yfloatThe y-coordinate of the upper-left corner of the rectangle.
widthfloatThe width of the rectangle.
heightfloatThe height of the rectangle.

See Also