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.

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:

Var ts As New TextShape
ts.X = 20
ts.Value = "Hello World"
ts.VerticalAlignment = TextShape.Alignment.Top