JPlanner Programmer's Guide
Graphics.measureString Method (String, Font, Double, TextFormat)
See Also
 






Measures the specified string when drawn with the specified Font.

Namespace: com.mindfusion.drawing
Package: com.mindfusion.drawing

 Syntax

Java  Copy Code

public SizeD measureString (
    String s,
    Font f,
    double width,
    TextFormat format
)

 Parameters

s

The String to measure.

f

The Font that defines the text format of the string.

width

The maximum width of the string.

format

A TextFormat object that represents formatting information, such as line alignment and wrapping, for the string.

 Return Value

A SizeD object that represents the size of the specified string as drawn with the specified font.

 See Also

measureString Method Overload List
Graphics Members
Graphics Interface
com.mindfusion.drawing Namespace