line

fnDrawShape line(string x1, string y1, string x2, string y2, string styleName = "")

Constructs a line shape.

Parameters

x1Start x coordinate.
y1Start y coordinate.
x2End x coordinate.
y2End y coordinate.
styleNameOptional draw:style-name.

Returns

A DrawShape with DrawShapeKind.LINE.