draw_line method

draw_line(begin_x, begin_y, end_x, end_y)

The process of drawing a single line.

Returns

The unique ID of the shape within shapes collection on the specified page.

def draw_line(self, begin_x, begin_y, end_x, end_y):
    ...
ParameterTypeDescription
begin_xfloatSpecifies the begin x-coordinate of the shape’s position in relation to the page.
begin_yfloatSpecifies the begin y-coordinate of the shape’s position in relation to the page.
end_xfloatSpecifies the end x-coordinate of the shape’s position in relation to the page.
end_yfloatSpecifies the end y-coordinate of the shape’s position in relation to the page.

draw_line(pin_x, pin_y, width, height, points) {#float-float-float-float-aspose.pydrawing.PointF[]}

The process of drawing line.

Returns

The unique ID of the shape within shapes collection on the specified page.

def draw_line(self, pin_x, pin_y, width, height, points):
    ...
ParameterTypeDescription
pin_xfloatSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pin_yfloatSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
widthfloatSpecifies the width of the shape
heightfloatSpecifies the height of the shape
pointsaspose.pydrawing.PointF[]Specifies the points of the line

See Also