ComponentOne Word for WPF
C1.WPF.Word.4.5.2 Assembly / C1.WPF.Word 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 Shared Function MeasureFontSize( _
       ByVal text As String, _
       ByVal font As Font, _
       ByVal width As Double _
    ) As Font
    public static Font MeasureFontSize( 
       string text,
       Font font,
       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