Version

DrawString(Graphics,String,Font,RectangleF,Color) Method

Draws the specified string at the specified location with the specified brush and font.
Syntax
'Declaration
 
Public Overloads Shared Sub DrawString( _
   ByVal gr As Graphics, _
   ByVal text As String, _
   ByVal font As Font, _
   ByVal bounds As RectangleF, _
   ByVal color As Color _
) 
public static void DrawString( 
   Graphics gr,
   string text,
   Font font,
   RectangleF bounds,
   Color color
)

Parameters

gr
The Graphics object.
text
The string to draw.
font
The Font that defines the text format of the string.
bounds
The RectangleF that specifies the location of the drawn text.
color
The color of the drawn text.
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