CurveShape.X2
From Xojo Documentation
Property (As Double )
aCurveShape.X2 = newDoubleValue
or
DoubleValue = aCurveShape.X2
Supported for all project types and targets.
or
DoubleValue = aCurveShape.X2
Supported for all project types and targets.
The horizontal position of the end of the line or curve.
Sample Code
The following method is in the Paint event of a Window. It draws a simple curve. The negative value of ControlY(0) places the control point above the imaginary straight line from x,y to x2,y2.