From Xojo Documentation

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

iOSGraphics.DrawRect(x As Double, y As Double, width As Double, height As Double)

Supported on Mobile(iOS).

Draws a rectangle.

Sample Code

From within an iOSCanvas.Paint event handler:

g.LineColor = Color.Blue
g.DrawRect(10, 10, 20, 20)