Graphics.StringHeight
From Xojo Documentation
This item was deprecated in version 2019r2. Please use Graphics.TextHeight as a replacement. |
Method
Graphics.StringHeight(text As String, wrapWidth As Double) As Double
Supported for all project types and targets.
Supported for all project types and targets.
Returns as a Double the height of the text based on the current font and font size and the passed wrapWidth (in display points).
Notes
The wrapWidth parameter specifies the width (in pixels) at which text should wrap.
StringHeight is calculated as the maximum height for the font itself and not the actual height of the text. For example, with "a" vs. "A", both return the same StringHeight even though "A" has a greater height than "a".