iOSGraphics.DrawTextBlock

From Xojo Documentation

Method

iOSGraphics.DrawTextBlock(value As Text, x As Double, y As Double, maxWidth As Double = -1.0, maxHeight As Double = -1.0, alignment As Xojo.iOSTextAlignment = iOSTextAlignment.Left, truncateLastLine As Boolean = False)

Supported on Mobile(iOS).

Draws a block of text.

Sample Code

From within an iOSCanvas.Paint event handler:

g.FillColor = Color.Blue
Dim t As Text
t = "How much wood would a woodchuck chuck if a woodchuck could chuck would?"
g.DrawTextBlock(t, 0, 10, g.Width, g.Height, iOSTextAlignment.Left, False)