Label.TextAlign

From Xojo Documentation

Property (As Integer )
aLabel.TextAlign = newIntegerValue
or
IntegerValue = aLabel.TextAlign

Supported for all project types and targets.

The alignment of the text.

Notes

Use the following class constants:

Value Description
AlignLeft Left alignment
AlignCenter Center Alignment
AlignRight Right Alignment

Example

Label1.TextAlign = Label.AlignRight