TextShape.VerticalAlignment
From Xojo Documentation
Property (As Alignment )
aTextShape.VerticalAlignment = newAlignmentValue
or
AlignmentValue = aTextShape.VerticalAlignment
New in 2019r2
Supported for all project types and targets.
or
AlignmentValue = aTextShape.VerticalAlignment
New in 2019r2
Supported for all project types and targets.
Sets the vertical alignment of the TextShape.
Notes
The choices are: Top, Baseline, or Bottom. The default is Baseline. The alignment is relative to the Object2D.X and Y properties.
Sample Code
This code aligns the TextShape to the top: