VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Drawing Namespace / DrawingEngine Class / MeasureString Methods / MeasureString(DrawingString,IDrawingFont) Method
Syntax Requirements SeeAlso
In This Topic
    MeasureString(DrawingString,IDrawingFont) Method (DrawingEngine)
    In This Topic
    Measures the specified string when drawn with this graphics.
    Syntax
    'Declaration
    
    Public Overloads Overridable Function MeasureString( _
    ByVal text
    A text of string to measure.
    As DrawingString, _
    ByVal font
    The font, which should be used for measuring text.
    As IDrawingFont _
    ) As System.Drawing.SizeF
    public virtual System.Drawing.SizeF MeasureString(
    DrawingString text,
    IDrawingFont font
    )
    public: virtual System.Drawing.SizeF* MeasureString(
    DrawingString* text,
    IDrawingFont* font
    )
    public:
    virtual System.Drawing.SizeF^ MeasureString(
    DrawingString^ text,
    IDrawingFont^ font
    )

    Parameters

    text
    A text of string to measure.
    font
    The font, which should be used for measuring text.

    Return Value

    Returns a System.Drawing.SizeF structure that represents the size of the string specified by the text parameter as drawn with this font.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also