StringShape.TextUnit

From Xojo Documentation

Property (As FontUnits )
aStringShape.TextUnit = newFontUnitsValue
or
FontUnitsValue = aStringShape.TextUnit

Supported for all project types and targets.

The units in which TextSize is measured. The options are given in the following table.

Value
Default
Pixel
Point
Inch
Millimeter

Example

This example sets the units to points using the class constant.

Dim s As New StringShape
s.TextUnit = FontUnits.Point
s.TextSize = 20

See Also

FontUnits Enumeration