Line.Y2

From Xojo Documentation

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

Supported for all project types and targets.

The point on the Y axis where the line ends.

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