Version

AddString(String,FontFamily,Int32,Single,PointF,StringFormat) Method

Adds a text string to this path.
Syntax
'Declaration
 
Public Overloads Sub AddString( _
   ByVal s As String, _
   ByVal family As FontFamily, _
   ByVal style As Integer, _
   ByVal emSize As Single, _
   ByVal origin As PointF, _
   ByVal format As StringFormat _
) 
public void AddString( 
   string s,
   FontFamily family,
   int style,
   float emSize,
   PointF origin,
   StringFormat format
)

Parameters

s
The System.String to add.
family
A System.Drawing.FontFamily that represents the name of the font with which the test is drawn.
style
A System.Drawing.FontStyle enumeration that represents style information about the text (bold, italic, and so on). This must be cast as an integer (see the example code later in this section).
emSize
The height of the em square box that bounds the character.
origin
A System.Drawing.PointF that represents the point where the text starts.
format
A System.Drawing.StringFormat that specifies text formatting information, such as line spacing and alignment.
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