LineTo(X,Y)

Draws a line from the current pen position up to the points specified in the method parameters.

The points specified in the parameters are not included in the line. Changes the pen position to the specified points. The line is drawn using the current pen and color.

To set the initial pen position for drawing a line, use the MoveTo(X,Y).

Parameters

Use the below parameters to specify the coordinates for drawing a line.

  • X. Integer.
  • Y. Integer.
Examples
Copy
Graphic.LineTo(50,50);