iOSLabel.TextAlignment

From Xojo Documentation

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

Property (As Xojo.iOSTextAlignment )
aiOSLabel.TextAlignment = newXojo.iOSTextAlignmentValue
or
Xojo.iOSTextAlignmentValue = aiOSLabel.TextAlignment

Supported on Mobile (iOS).

Specifies the alignment for the text. The default value is iOSTextAlignment.Left.

Sample Code

Center the text:

Label1.TextAlignment = Xojo.iOSTextAlignment.Center