drawTextHeight

drawTextHeight(text: String): Real;

The drawTextHeight method of the Window class returns the height of the graphical text output that would result from drawing the passed text string with the drawTextAt method. The text parameter is the text string.

The returned value is a Real primitive type, in the units of the scaleMode property of the form or control.

The height of the text is calculated based on a single line of text, unless it has embedded carriage return characters within it forcing new lines.