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

In This Topic
    MeasureString(String,Font,Single) Method
    In This Topic
    Measure string for the RTF document.
    Syntax
    'Declaration
     
    Public Overloads Function MeasureString( _
       ByVal text As System.String, _
       ByVal font As System.Drawing.Font, _
       ByVal width As System.Single _
    ) As System.Drawing.SizeF
    public System.Drawing.SizeF MeasureString( 
       System.string text,
       System.Drawing.Font font,
       System.float 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