Graphics.DrawLine

From Xojo Documentation

Method

Graphics.DrawLine(x1 As Double, y1 As Double, x2 As Double, y2 As Double)

Supported for all project types and targets.

Draws a line from X1, y1 to x2, y2 in the current color. The current color is set with the DrawingColor property.