GraphicsPath.AddString

AddString(string, FontFamily, int, float, Point, StringFormat)

Adds a text string to this path.

public void AddString(string s, FontFamily family, int style, float emSize, Point origin, 
    StringFormat format)
ParameterTypeDescription
sStringThe String to add.
familyFontFamilyA FontFamily that represents the name of the font with which the test is drawn.
styleInt32A 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).
emSizeSingleThe height of the EM square box that bounds the character.
originPointA Point that represents the point where the text starts.
formatStringFormatA StringFormat that specifies text formatting information, such as line spacing and alignment.

See Also


AddString(string, FontFamily, int, float, PointF, StringFormat)

Adds a text string to this path.

public void AddString(string s, FontFamily family, int style, float emSize, PointF origin, 
    StringFormat format)
ParameterTypeDescription
sStringThe String to add.
familyFontFamilyA FontFamily that represents the name of the font with which the test is drawn.
styleInt32A 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).
emSizeSingleThe height of the EM square box that bounds the character.
originPointFA PointF that represents the point where the text starts.
formatStringFormatA StringFormat that specifies text formatting information, such as line spacing and alignment.

See Also


AddString(string, FontFamily, int, float, Rectangle, StringFormat)

Adds a text string to this path.

public void AddString(string s, FontFamily family, int style, float emSize, Rectangle layoutRect, 
    StringFormat format)
ParameterTypeDescription
sStringThe String to add.
familyFontFamilyA FontFamily that represents the name of the font with which the test is drawn.
styleInt32A 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).
emSizeSingleThe height of the EM square box that bounds the character.
layoutRectRectangleA Rectangle that represents the rectangle that bounds the text.
formatStringFormatA StringFormat that specifies text formatting information, such as line spacing and alignment.

See Also


AddString(string, FontFamily, int, float, RectangleF, StringFormat)

Adds a text string to this path.

public void AddString(string s, FontFamily family, int style, float emSize, RectangleF layoutRect, 
    StringFormat format)
ParameterTypeDescription
sStringThe String to add.
familyFontFamilyA FontFamily that represents the name of the font with which the test is drawn.
styleInt32A 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).
emSizeSingleThe height of the EM square box that bounds the character.
layoutRectRectangleFA RectangleF that represents the rectangle that bounds the text.
formatStringFormatA StringFormat that specifies text formatting information, such as line spacing and alignment.

See Also