FigureShape.AddLine
From Xojo Documentation
Method
FigureShape.AddLine(X as Single, Y as Single, X2 as Single, Y2 as Single)
Supported for all project types and targets.
Supported for all project types and targets.
Adds a straight line to the figure.
Notes
X and Y are the starting coordinates; X2 and Y2 are the end coordinates.
Example
The following example draws a triangle. The code is placed in the Paint event of a Window or Canvas.