StaticText.TextAlign

From Xojo Documentation

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

Supported for all project types and targets.

The alignment of the text.

Use the following class constants:

AlignLeft: Left alignment

AlignCenter: Center alignment

AlignRight: Right alignment