ComponentOne Word for WinForms
C1.C1Word.4.5.2 Assembly / C1.C1Word Namespace / C1WordDocument Class / MeasureFontSize Method
The drawing string.
The drawing base font.
The current size in points for fit the drawing string.

In This Topic
    MeasureFontSize Method
    In This Topic
    Measure font size for the text of this document.
    Syntax
    'Declaration
     
    Public Function MeasureFontSize( _
       ByVal text As System.String, _
       ByVal font As System.Drawing.Font, _
       ByVal width As System.Double _
    ) As System.Drawing.Font
    public System.Drawing.Font MeasureFontSize( 
       System.string text,
       System.Drawing.Font font,
       System.double width
    )

    Parameters

    text
    The drawing string.
    font
    The drawing base font.
    width
    The current size in points for fit the drawing string.

    Return Value

    The new drawing font with calculated font size.
    See Also