VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Drawing Namespace / DrawingEngine Class / MeasureText Methods / MeasureText(String,IDrawingFont,TextLayoutProperties) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    MeasureText(String,IDrawingFont,TextLayoutProperties) Method (DrawingEngine)
    In This Topic
    Measures the specified text when drawn with this drawing engine.
    Syntax
    'Declaration
    
    Public Overloads Function MeasureText( _
    ByVal text
    A text to measure.
    As System.String, _
    ByVal font
    The IDrawingFont, which should be used to measure text.
    As IDrawingFont, _
    ByVal layoutProperties
    The TextLayoutProperties, which should be used for measuring text.
    As TextLayoutProperties _
    ) As System.Drawing.SizeF

    Parameters

    text
    A text to measure.
    font
    The IDrawingFont, which should be used to measure text.
    layoutProperties
    The TextLayoutProperties, which should be used for measuring text.

    Return Value

    The text size.
    Exceptions
    ExceptionDescription
    Thrown if font or brush is null.
    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