<div class="meta" robots="noindex">

</div>

Property

# Graphics.TextAscent

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Graphics.FontAscent<graphics.fontascent>` as a replacement.

</div>

## 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 <span class="title-ref">TextAscent</span> of the text that was drawn with DrawString.

``` xojo
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.
