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

In This Topic
    MeasureString(String,Font,Single,StringFormat) Method
    In This Topic
    Measure string for this document.
    Syntax
    'Declaration
     
    Public Overloads Function MeasureString( _
       ByVal text As System.String, _
       ByVal font As System.Drawing.Font, _
       ByVal width As System.Single, _
       ByVal sf As System.Drawing.StringFormat _
    ) As System.Drawing.SizeF
    public System.Drawing.SizeF MeasureString( 
       System.string text,
       System.Drawing.Font font,
       System.float width,
       System.Drawing.StringFormat sf
    )

    Parameters

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

    Return Value

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