Search
IGraphics.MeasureString Method (String, Font)
See Also
 






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

Namespace: MindFusion.Drawing
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

Size MeasureString (
    string text,
    Font font
)

Visual Basic  Copy Code

Function MeasureString( _
    text As String, _
    font As Font _
) As Size

 Parameters

text

The string to measure.

font

A Microsoft.Maui.Font that specifies the font attributes.

 Return Value

A Size structure that represents the size, in pixels, of the string specified by the text parameter as drawn with the font parameter.

 See Also