ComponentOne PDF for .NET
C1.C1Pdf Namespace / C1PdfDocument Class / MeasureStringHtml Method / MeasureStringHtml(String,Font) Method
String to measure.
System.Drawing.Font object that defines the appearance and size of the text.

In This Topic
    MeasureStringHtml(String,Font) Method
    In This Topic
    Measures an HTML string when drawn with a given System.Drawing.Font object.
    Syntax
    'Declaration
     
    
    Public Overloads Function MeasureStringHtml( _
       ByVal text As String, _
       ByVal font As Font _
    ) As SizeF
    public SizeF MeasureStringHtml( 
       string text,
       Font font
    )

    Parameters

    text
    String to measure.
    font
    System.Drawing.Font object that defines the appearance and size of the text.

    Return Value

    The size of the string expressed in points.
    See Also