## 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.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddString(const String &text, const SharedPtr<FontFamily> &family, int style, float emSize, Point origin, const SharedPtr<StringFormat> &stringFormat)
```


| Parameter | Type | Description |
| --- | --- | --- |
| text | const String\& | The text to add |
| family | const SharedPtr\<FontFamily\>\& | The font family used to draw the text |
| style | int | A [FontStyle](../../../system.drawing/fontstyle/) enumeration value tha specifies the font style to use |
| emSize | float | The height of the em square box that bounds each character of the string |
| origin | Point | Specifies the location where the text starts |
| stringFormat | const SharedPtr\<StringFormat\>\& | The format of the string |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FontFamily](../../../system.drawing/fontfamily/)
* Class [Point](../../../system.drawing/point/)
* Class [StringFormat](../../../system.drawing/stringformat/)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PDF for C++](../../../)
## 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.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddString(const String &text, const SharedPtr<FontFamily> &family, int style, float emSize, PointF origin, const SharedPtr<StringFormat> &stringFormat)
```


| Parameter | Type | Description |
| --- | --- | --- |
| text | const String\& | The text to add |
| family | const SharedPtr\<FontFamily\>\& | The font family used to draw the text |
| style | int | A [FontStyle](../../../system.drawing/fontstyle/) enumeration value tha specifies the font style to use |
| emSize | float | The height of the em square box that bounds each character of the string |
| origin | PointF | Specifies the location where the text starts |
| stringFormat | const SharedPtr\<StringFormat\>\& | The format of the string |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FontFamily](../../../system.drawing/fontfamily/)
* Class [PointF](../../../system.drawing/pointf/)
* Class [StringFormat](../../../system.drawing/stringformat/)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PDF for C++](../../../)
## 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.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddString(const String &text, const SharedPtr<FontFamily> &family, int style, float emSize, Rectangle layoutRect, const SharedPtr<StringFormat> &stringFormat)
```


| Parameter | Type | Description |
| --- | --- | --- |
| text | const String\& | The text to add |
| family | const SharedPtr\<FontFamily\>\& | The font family used to draw the text |
| style | int | A [FontStyle](../../../system.drawing/fontstyle/) enumeration value tha specifies the font style to use |
| emSize | float | The height of the em square box that bounds each character of the string |
| layoutRect | Rectangle | A rectangle that bounds the text |
| stringFormat | const SharedPtr\<StringFormat\>\& | The format of the string |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FontFamily](../../../system.drawing/fontfamily/)
* Class [Rectangle](../../../system.drawing/rectangle/)
* Class [StringFormat](../../../system.drawing/stringformat/)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PDF for C++](../../../)
## 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.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddString(const String &text, const SharedPtr<FontFamily> &family, int style, float emSize, RectangleF layoutRect, const SharedPtr<StringFormat> &stringFormat)
```


| Parameter | Type | Description |
| --- | --- | --- |
| text | const String\& | The text to add |
| family | const SharedPtr\<FontFamily\>\& | The font family used to draw the text |
| style | int | A [FontStyle](../../../system.drawing/fontstyle/) enumeration value tha specifies the font style to use |
| emSize | float | The height of the em square box that bounds each character of the string |
| layoutRect | RectangleF | A rectangle that bounds the text |
| stringFormat | const SharedPtr\<StringFormat\>\& | The format of the string |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FontFamily](../../../system.drawing/fontfamily/)
* Class [RectangleF](../../../system.drawing/rectanglef/)
* Class [StringFormat](../../../system.drawing/stringformat/)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PDF for C++](../../../)
