GraphicsPath::AddString Method (String^, FontFamily^, Int32, Single, PointF, StringFormat^)
.NET Framework (current version)
Adds a text string to this path.
Assembly: System.Drawing (in System.Drawing.dll)
public: void AddString( String^ s, FontFamily^ family, int style, float emSize, PointF origin, StringFormat^ format )
Parameters
- s
-
Type:
System::String^
The String to add.
- family
-
Type:
System.Drawing::FontFamily^
A FontFamily that represents the name of the font with which the test is drawn.
- style
-
Type:
System::Int32
A 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
-
Type:
System::Single
The height of the em square box that bounds the character.
- origin
-
Type:
System.Drawing::PointF
A PointF that represents the point where the text starts.
- format
-
Type:
System.Drawing::StringFormat^
A StringFormat that specifies text formatting information, such as line spacing and alignment.
For an example, see AddString(String^, FontFamily^, Int32, Single, Point, StringFormat^).
.NET Framework
Available since 1.1
Available since 1.1
Show: