TreeView for WinForms | ComponentOne
C1.Win.C1SuperTooltip Namespace / C1SuperLabelBase Class / DrawToGraphics Method / DrawToGraphics(Graphics,RectangleF,Int32) Method
System.Drawing.Graphics object where the content will be rendered.
System.Drawing.Rectangle that specifies the bounds where the content will be rendered.
Offset of the first line to draw (usually the return value of a previous call to DrawStringHtml).

In This Topic
    DrawToGraphics(Graphics,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 DrawToGraphics( _
       ByVal g As Graphics, _
       ByVal bounds As RectangleF, _
       ByVal offset As Integer _
    ) As Integer
    public int DrawToGraphics( 
       Graphics g,
       RectangleF bounds,
       int offset
    )

    Parameters

    g
    System.Drawing.Graphics object where the content will be rendered.
    bounds
    System.Drawing.Rectangle that specifies the bounds where the content will be rendered.
    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. By default zero.
    See Also