getTextHeight

getTextHeight(str: String): Integer;

The getTextHeight method of the Window class returns the height in pixels required to display the string specified in the str parameter in this window using its current font.

The string is treated as a single line, unless it contains carriage return characters, in which case this method returns the total height of all the lines.

See also the getTextHeightForWidth method.