VintaSoft Barcode .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Barcode.TextRendering Namespace / TextFont Class / MeasureString(String) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    MeasureString(String) Method (TextFont)
    In This Topic
    Measures the specified string when drawn with this font.
    Syntax
    'Declaration
    
    Public MustOverride Function MeasureString( _
    ByVal text
    A text of string to measure.
    As String _
    ) As Vintasoft.Primitives.VintasoftSizeF
    public abstract Vintasoft.Primitives.VintasoftSizeF MeasureString(
    string text
    )
    public: abstract Vintasoft.Primitives.VintasoftSizeF MeasureString(
    string* text
    )
    public:
    abstract Vintasoft.Primitives.VintasoftSizeF MeasureString(
    string^ text
    )

    Parameters

    text
    A text of string to measure.

    Return Value

    Returns a VintasoftSizeF structure that represents the size of the string specified by the text parameter as drawn with this font.
    Exceptions
    ExceptionDescription
    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