Property

Graphics.TextAscent


Warning

This item was deprecated in version 2019r2. Please use Graphics.FontAscent as a replacement.

Description

Returns the ascent of a line of text drawn with the current font.

Notes

TextAscent is the height of the tallest font letter above the font baseline.

Sample code

The following example gets the TextAscent of the text that was drawn with DrawString.

g.ForeColor = &cff0000
g.Italic = True
g.DrawString("Hello world", 10, 10)
MsgBox(Str(g.TextAscent))

Compatibility

All project types on all supported operating systems.