Version

DrawString Method (UIElementDrawParams)

Draws textToRender in specified rectangle.
Syntax
'Declaration
 
Public Sub DrawString( _
   ByVal destRect As Rectangle, _
   ByVal textToRender As String, _
   ByVal multiline As Boolean, _
   ByVal wrapText As Boolean _
) 
public void DrawString( 
   Rectangle destRect,
   string textToRender,
   bool multiline,
   bool wrapText
)

Parameters

destRect
The System.Drawing.Rectangle of the element that the text should be rendered into.
textToRender
The text that should be drawn.
multiline
True if the text should be drawn on multiple lines.
wrapText
True if the text should be wrapped.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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