From Xojo Documentation

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

Property (As Xojo.TextAlignments )
aWebLabel.TextAlignment = newXojo.TextAlignmentsValue
Xojo.TextAlignmentsValue = aWebLabel.TextAlignment

New in 2020r1

Supported for all project types and targets.

The alignment of the Value as displayed in the control.

Sample Code

The following code in the Opening event of the control sets the text alignment to Center.

Me.TextAlignment = Xojo.TextAlignments.Center