Document Solutions for PDF
GrapeCity.Documents.Html / GrapeCity.Documents.Pdf Namespace / GcPdfGraphicsExt Class / MeasureHtml Method / MeasureHtml(GcPdfGraphics,String,HtmlToPdfFormat,Int32,String,String) Method
The target GcPdfGraphics object.
The HTML string to draw.
The formatting attributes.
The number of milliseconds to wait before deeming the page to be ready.
A whitelist for Negotiate Auth servers, such as "*example.com".
A proxy server, such as "https://proxy-ip:proxy-port".

In This Topic
    MeasureHtml(GcPdfGraphics,String,HtmlToPdfFormat,Int32,String,String) Method
    In This Topic
    Measures an HTML string for rendering on this GcPdfGraphics
    Syntax
    'Declaration
     
    Public Overloads Shared Function MeasureHtml( _
       ByVal graphics As GcPdfGraphics, _
       ByVal html As System.String, _
       ByVal format As HtmlToPdfFormat, _
       Optional ByVal virtualTimeBudget As System.Integer, _
       Optional ByVal authServerWhitelist As System.String, _
       Optional ByVal proxyServer As System.String _
    ) As System.Drawing.SizeF
    public static System.Drawing.SizeF MeasureHtml( 
       GcPdfGraphics graphics,
       System.string html,
       HtmlToPdfFormat format,
       System.int virtualTimeBudget,
       System.string authServerWhitelist,
       System.string proxyServer
    )

    Parameters

    graphics
    The target GcPdfGraphics object.
    html
    The HTML string to draw.
    format
    The formatting attributes.
    virtualTimeBudget
    The number of milliseconds to wait before deeming the page to be ready.
    authServerWhitelist
    A whitelist for Negotiate Auth servers, such as "*example.com".
    proxyServer
    A proxy server, such as "https://proxy-ip:proxy-port".

    Return Value

    The size of the HTML block if rendered on this graphics.
    See Also