From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As FontUnits )
aDesktopGroupBox.FontUnit = newFontUnitsValue
FontUnitsValue = aDesktopGroupBox.FontUnit

New in 2021r3

Supported for all project types and targets.

The unit in which FontSize is measured.

Sample Code

The following sets the font units to Millimeter.

Me.FontUnit = FontUnits.Millimeter