Page.DrawLine

DrawLine(double, double, double, double)

The process of drawing a single line.

public long DrawLine(double beginX, double beginY, double endX, double endY)
ParameterTypeDescription
beginXDoubleSpecifies the begin x-coordinate of the shape’s position in relation to the page.
beginYDoubleSpecifies the begin y-coordinate of the shape’s position in relation to the page.
endXDoubleSpecifies the end x-coordinate of the shape’s position in relation to the page.
endYDoubleSpecifies the end y-coordinate of the shape’s position in relation to the page.

Return Value

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

See Also


DrawLine(double, double, double, double, double[])

The process of drawing line.

public long DrawLine(double pinX, double pinY, double width, double height, double[] xyArray)
ParameterTypeDescription
pinXDoubleSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYDoubleSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
widthDoubleSpecifies the width of the shape
heightDoubleSpecifies the height of the shape
xyArrayDouble[]An array of alternating x and y values that defines points in the new shape

Return Value

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

See Also


DrawLine(double, double, double, double, PointF[])

The process of drawing line.

public long DrawLine(double pinX, double pinY, double width, double height, PointF[] points)
ParameterTypeDescription
pinXDoubleSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYDoubleSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
widthDoubleSpecifies the width of the shape
heightDoubleSpecifies the height of the shape
pointsPointF[]Specifies the points of the line

Return Value

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

See Also