VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / MeasureFontSize Methods / MeasureFontSize(String,PdfFont,Single) Method
Syntax Requirements SeeAlso
In This Topic
    MeasureFontSize(String,PdfFont,Single) Method (PdfGraphics)
    In This Topic
    Measures the text font size for specified text width.
    Syntax
    'Declaration
    
    Public Overloads Function MeasureFontSize( _
    ByVal text
    String to measure.
    As System.String, _
    ByVal font
    PdfFont that defines the text format of the string.
    As Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont, _
    ByVal textWidth
    Maximum width of the string in user units (1 / 72 inch).
    As Single _
    ) As Single
    public float MeasureFontSize(
    System.String text,
    Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont font,
    float textWidth
    )
    public: float MeasureFontSize(
    System.String text,
    Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont* font,
    float textWidth
    )
    public:
    float MeasureFontSize(
    System.String text,
    Vintasoft.Imaging.Pdf.Tree.Fonts.PdfFont^ font,
    float textWidth
    )

    Parameters

    text
    String to measure.
    font
    PdfFont that defines the text format of the string.
    textWidth
    Maximum width of the string in user units (1 / 72 inch).

    Return Value

    Measured font size.
    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