System.Drawing.Drawing2D.GraphicsPath.AddString Method

Adds a text string to this path.

Syntax

public void AddString (string s, System.Drawing.FontFamily family, int style, float emSize, System.Drawing.PointF origin, System.Drawing.StringFormat format)

Parameters

s
The 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.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0