StringShape.VerticalAlignment

From Xojo Documentation

Property (As Alignment )
aStringShape.VerticalAlignment = newAlignmentValue
or
AlignmentValue = aStringShape.VerticalAlignment

New in 2009r3

Supported for all project types and targets.

Sets the vertical alignment of the StringShape.

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 StringShape to the top:

Dim ss As New StringShape
ss.X = 20
ss.Text = "Hello World"
ss.VerticalAlignment = StringShape.Alignment.Top