From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

iOSPath.LineToPoint(x As Double, y As Double)

Supported on Mobile(iOS).

Draws a line from the CurrentPoint to the specified point.


Value Description
x The x coordinate for the end of the line.
y The y coordinate for the end of the line.

Sample Code

Draw a triangle:

Var p As New iOSPath
p.MoveToPoint(0, 0) // Start location
p.LineToPoint(20, 44)
p.LineToPoint(40, 0)
p.LineToPoint(0, 0)

g.LineColor = Color.Blue