iOSGraphics.TextLineSize

From Xojo Documentation

Method

iOSGraphics.TextLineSize(value As Text, maxWidth As Double = -1.0, alignment As iOSTextAlignment = iOSTextAlignment.Left, truncate As Boolean = False) As Xojo.Core.Size

Supported on Mobile(iOS).

Calculates the size of a text as it would appear using DrawTextLine.

Sample Code

Get the text line size of left-aligned text:

Var tls As Size
tls = g.TextLineSize("Hello, world!", -1, iOSTextAlignment.Left, False)