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 As System.Drawing.Graphics, _
ByVal As System.Drawing.RectangleF, _
ByVal As System.Integer _
) As System.Integer
public System.int DrawToGraphics(
System.Drawing.Graphics ,
System.Drawing.RectangleF ,
System.int
)
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