From Xojo Documentation

Revision as of 14:14, 19 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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
Var t As Text
t = "How much wood would a woodchuck chuck if a woodchuck could chuck wood?"
g.DrawTextBlock(t, 0, 10, g.Width, g.Height, iOSTextAlignment.Left, False)