Retrieves the area required to display the specified text string using the current font settings.
public Point getTextSize( String text )
public Point getTextSize( String text, int[] tabStops )
public Point getTextSize( String text, int width, int format )
text
A string that specifies the text for which to retrieve the size.
tabstops
An array of integers that specify the tab stops to use to format this text.
width
The margin width where text wrapping, if specified, will be applied.
format
One or more text format options. This value must be designate one or more of the enumeration constants specified in the TextFormat class.
Returns a Point object that specifies the width and height of the text.