ComponentOne Word for WPF
C1.WPF.Word.4.5.2 Assembly / C1.WPF.Word Namespace / C1WordDocument Class / MeasureString Method / MeasureString(String,Font,Double) Method
The drawing string.
The drawing font.
The drawing width or -1 for default.

In This Topic
    MeasureString(String,Font,Double) Method
    In This Topic
    Measure string for the RTF document.
    Syntax
    'Declaration
     
    Public Overloads Shared Function MeasureString( _
       ByVal text As String, _
       ByVal font As Font, _
       ByVal width As Double _
    ) As Size
    public static Size MeasureString( 
       string text,
       Font font,
       double width
    )

    Parameters

    text
    The drawing string.
    font
    The drawing font.
    width
    The drawing width or -1 for default.

    Return Value

    The size, in points, of the string specified as drawn with the font parameter.
    See Also