Document Solutions for PDF
DS.Documents.Html Assembly / GrapeCity.Documents.Pdf Namespace / GcPdfGraphicsExt Class / MeasureHtml Method / MeasureHtml(GcPdfGraphics,GcHtmlBrowser,String,HtmlToPdfFormat,Boolean) Method
The target GcPdfGraphics object.
An instance of GrapeCity.Documents.Html.GcHtmlBrowser object.
The HTML string to draw.
The formatting attributes.
Whether to scroll the page down to the end to force pending images to load.

In This Topic
    MeasureHtml(GcPdfGraphics,GcHtmlBrowser,String,HtmlToPdfFormat,Boolean) 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 browser As GcHtmlBrowser, _
       ByVal html As System.String, _
       ByVal format As HtmlToPdfFormat, _
       Optional ByVal loadLazyImages As System.Boolean _
    ) As System.Drawing.SizeF
    public static System.Drawing.SizeF MeasureHtml( 
       GcPdfGraphics graphics,
       GcHtmlBrowser browser,
       System.string html,
       HtmlToPdfFormat format,
       System.bool loadLazyImages
    )

    Parameters

    graphics
    The target GcPdfGraphics object.
    browser
    An instance of GrapeCity.Documents.Html.GcHtmlBrowser object.
    html
    The HTML string to draw.
    format
    The formatting attributes.
    loadLazyImages
    Whether to scroll the page down to the end to force pending images to load.

    Return Value

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