MindFusion.Charting for JavaScript Programmer's Guide
Graphics.measureString Method
See Also
 






Gets the size of the specified string.

Namespace: MindFusion.Drawing
File: Graphics.js

 Syntax

JavaScript  Copy Code

function measureString (text, font, [width])

 Parameters

text

Type: String
The string to measure.

font

Type: Font
The font to use.

width
Optional.

Type: Number
The maximum width.

 Return Value

Type: Size
The size of the given string when drawn with the given font.

 See Also

Graphics Members
Graphics Class
MindFusion.Drawing Namespace