Version

PaintText Method

Renders the requested text to the given Graphics object.
Syntax
'Declaration
 
Public Sub PaintText( _
   ByVal g As Graphics, _
   ByVal s As String, _
   ByVal style As LabelStyle, _
   ByVal layoutRectangle As Rectangle _
) 
public void PaintText( 
   Graphics g,
   string s,
   LabelStyle style,
   Rectangle layoutRectangle
)

Parameters

g
The graphics object to render to.
s
The text string to render.
style
The LabelStyle object with settings related to the display style of the label to render.
layoutRectangle
The destination rectangle to render the label to.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also