Line.X1

From Xojo Documentation

Property (As Double )
aLine.X1 = newDoubleValue
or
DoubleValue = aLine.X1

Supported for all project types and targets.

The point on the X axis where the line begins.

Example

This example draws a horizontal red line with a 2 point width.

Me.LineColor = &cff000000
Me.Thickness = 2
Me.X1 = 10
Me.Y1 = 90
Me.X2 = 120
Me.Y2 = 90