Rectangle constructor

Contents
[ ]

init

Initializes a new instance of the Rectangle class.

def __init__(self, position, size):
    ...
Parameter Type Description
position groupdocs.parser.data.Point The coordinates of the upper-left corner of the rectangular area.
size groupdocs.parser.data.Size The size of the rectangular area.

init

Initializes a new instance of the Rectangle class.

def __init__(self, left, top, right, bottom):
    ...
Parameter Type Description
left float The x-coordinate of the left edge of the rectangular area.
top float The y-coordinate of the top edge of the rectangular area.
right float The x-coordinate of the right edge of the rectangular area.
bottom float The y-coordinate of the bottom edge of the rectangular area.

See Also