From Xojo Documentation

Revision as of 15:54, 12 November 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As Single )
aGraphics.FontSize = newSingleValue
SingleValue = aGraphics.FontSize

New in 2019r2

Supported for all project types and targets.

Point size of the font used to display a caption or text content.


If you enter zero as the TextSize, your app will use the font size that works best for the platform on which it is running.

Sample Code

This code sets the font size to 16 points.

Me.FontSize = 16