AddString()

GraphicsPath::AddString(const String&, const SharedPtr<FontFamily>&, int, float, Point, const SharedPtr<StringFormat>&) method

Adds a string of text to the path represented by the current object.

void System::Drawing::Drawing2D::GraphicsPath::AddString(const String &text, const SharedPtr<FontFamily> &family, int style, float emSize, Point origin, const SharedPtr<StringFormat> &stringFormat)

Arguments

ParameterTypeDescription
textconst String&The text to add
familyconst SharedPtr<FontFamily>&The font family used to draw the text
styleintA FontStyle enumeration value tha specifies the font style to use
emSizefloatThe height of the em square box that bounds each character of the string
originPointSpecifies the location where the text starts
stringFormatconst SharedPtr<StringFormat>&The format of the string

GraphicsPath::AddString(const String&, const SharedPtr<FontFamily>&, int, float, PointF, const SharedPtr<StringFormat>&) method

Adds a string of text to the path represented by the current object.

void System::Drawing::Drawing2D::GraphicsPath::AddString(const String &text, const SharedPtr<FontFamily> &family, int style, float emSize, PointF origin, const SharedPtr<StringFormat> &stringFormat)

Arguments

ParameterTypeDescription
textconst String&The text to add
familyconst SharedPtr<FontFamily>&The font family used to draw the text
styleintA FontStyle enumeration value tha specifies the font style to use
emSizefloatThe height of the em square box that bounds each character of the string
originPointFSpecifies the location where the text starts
stringFormatconst SharedPtr<StringFormat>&The format of the string

GraphicsPath::AddString(const String&, const SharedPtr<FontFamily>&, int, float, Rectangle, const SharedPtr<StringFormat>&) method

Adds a string of text to the path represented by the current object.

void System::Drawing::Drawing2D::GraphicsPath::AddString(const String &text, const SharedPtr<FontFamily> &family, int style, float emSize, Rectangle layoutRect, const SharedPtr<StringFormat> &stringFormat)

Arguments

ParameterTypeDescription
textconst String&The text to add
familyconst SharedPtr<FontFamily>&The font family used to draw the text
styleintA FontStyle enumeration value tha specifies the font style to use
emSizefloatThe height of the em square box that bounds each character of the string
layoutRectRectangleA rectangle that bounds the text
stringFormatconst SharedPtr<StringFormat>&The format of the string

GraphicsPath::AddString(const String&, const SharedPtr<FontFamily>&, int, float, RectangleF, const SharedPtr<StringFormat>&) method

Adds a string of text to the path represented by the current object.

void System::Drawing::Drawing2D::GraphicsPath::AddString(const String &text, const SharedPtr<FontFamily> &family, int style, float emSize, RectangleF layoutRect, const SharedPtr<StringFormat> &stringFormat)

Arguments

ParameterTypeDescription
textconst String&The text to add
familyconst SharedPtr<FontFamily>&The font family used to draw the text
styleintA FontStyle enumeration value tha specifies the font style to use
emSizefloatThe height of the em square box that bounds each character of the string
layoutRectRectangleFA rectangle that bounds the text
stringFormatconst SharedPtr<StringFormat>&The format of the string

See Also