ComponentOne PDF for .NET
C1.C1Pdf Namespace / C1PdfDocument Class / DrawStringHtml Method / DrawStringHtml(String,Font,Brush,RectangleF,Int32) Method
HTML string to draw.
System.Drawing.Font object that defines the appearance and size of the drawn text.
System.Drawing.Brush object that defines the color of the drawn text.
System.Drawing.RectangleF structure that specifies the location of the drawn text, in points from the top left corner of the page.
Offset of the first line to draw (usually the return value of a previous call to DrawStringHtml).

In This Topic
    DrawStringHtml(String,Font,Brush,RectangleF,Int32) Method
    In This Topic
    Draws an HTML string in the specified rectangle with the specified System.Drawing.Brush and System.Drawing.Font objects, starting at a given offset within the string.
    Syntax
    'Declaration
     
    
    Public Overloads Function DrawStringHtml( _
       ByVal text As String, _
       ByVal font As Font, _
       ByVal brush As Brush, _
       ByVal rc As RectangleF, _
       ByVal offset As Integer _
    ) As Integer
    public int DrawStringHtml( 
       string text,
       Font font,
       Brush brush,
       RectangleF rc,
       int offset
    )

    Parameters

    text
    HTML string to draw.
    font
    System.Drawing.Font object that defines the appearance and size of the drawn text.
    brush
    System.Drawing.Brush object that defines the color of the drawn text.
    rc
    System.Drawing.RectangleF structure that specifies the location of the drawn text, in points from the top left corner of the page.
    offset
    Offset of the first line to draw (usually the return value of a previous call to DrawStringHtml).

    Return Value

    The offset of the first line that was not printed because it did not fit in the specified rectangle, or the value of System.Int32.MaxValue if the entire string was rendered.
    See Also