Version

DrawString Method (DrawUtility)

Draws a string with the specified parameters.
Overload List
OverloadDescription
DrawString(DrawStringParameters)Draws a string with the specified parameters.  
DrawString(Graphics,String,Font,SolidBrush,Single,Single)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,Single,Single,Color)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,SolidBrush,PointF)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,Point,Color)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,SolidBrush,RectangleF)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,RectangleF,Color)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,SolidBrush,Single,Single,StringFormat)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,Single,Single,Color,StringFormat)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,SolidBrush,PointF,StringFormat)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,PointF,Color,StringFormat)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,SolidBrush,RectangleF,StringFormat)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,SolidBrush,Single,Single,GdiDrawStringFlags)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,Single,Single,Color,GdiDrawStringFlags)Draws the specified string at the specified location with the specified color and font.  
DrawString(Graphics,String,Font,SolidBrush,PointF,GdiDrawStringFlags)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,Point,Color,GdiDrawStringFlags)Draws the specified string at the specified location with the specified color and font.  
DrawString(Graphics,String,Font,SolidBrush,RectangleF,GdiDrawStringFlags)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,RectangleF,Color,GdiDrawStringFlags)Draws the specified string at the specified location with the specified color and font.  
DrawString(Graphics,String,Font,SolidBrush,Single,Single,StringFormat,GdiDrawStringFlags)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,Single,Single,Color,StringFormat,GdiDrawStringFlags)Draws the specified string at the specified location with the specified color and font.  
DrawString(Graphics,String,Font,SolidBrush,PointF,StringFormat,GdiDrawStringFlags)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,PointF,Color,StringFormat,GdiDrawStringFlags)Draws the specified string at the specified location with the specified color and font.  
DrawString(Graphics,String,Font,SolidBrush,RectangleF,StringFormat,GdiDrawStringFlags)Draws the specified string at the specified location with the specified brush and font.  
DrawString(Graphics,String,Font,Color,RectangleF,StringFormat,GdiDrawStringFlags)Draws the specified string at the specified location with the specified color and font.  
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