PdfCanvas.AppendLineTo Method (Double, Double)

Appends a straight line segment from the CurrentPosition to specified endpoint to the current path.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void AppendLineTo(
	double x,
	double y
)
VB
Public Sub AppendLineTo ( 
	x As Double,
	y As Double
)

Parameters

x
Type: System.Double
The x-coordinate of the endpoint.
y
Type: System.Double
The y-coordinate of the endpoint.

Remarks

The endpoint becomes new current point.

Note that the call to this method does not place any marks on the canvas; only the painting operators (StrokePath(), CloseAndStrokePath(), FillPath(PdfFillMode), FillAndStrokePath(PdfFillMode)) do that.

Please use DrawLineTo() if you want to draw a line immediately.

See Also