MindFusion.Charting for WebForms Programmer's Guide
GdiGraphics.MeasureString Method (String, Font)
See Also
 



Measures the specified string when drawn with the specified Font object.

Namespace: MindFusion.Drawing
Assembly: MindFusion.Common

 Syntax

C#  Copy Code

public virtual SizeF MeasureString (
    string text,
    Font font
)

Visual Basic  Copy Code

Public Overridable Function MeasureString( _
    text As String, _
    font As Font _
) As SizeF

 Parameters

text
The string to measure.
font
A .NET Font object that defines the text format of the string.

 Return Value

This method returns a .NET SizeF structure that represents the size, in pixels, of the string specified by the text parameter as drawn with the font parameter.

 See Also

MeasureString Method Overload List
GdiGraphics Members
GdiGraphics Class
MindFusion.Drawing Namespace