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


向当前对象表示的路径添加一串文本。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 文本 | const String\& | 要添加的文本 |
| family | const SharedPtr\<FontFamily\>\& | 用于绘制文本的字体系列 |
| style | int | 一个 [FontStyle](../../../system.drawing/fontstyle/) 枚举值，指定要使用的字体样式。 |
| emSize | float | 字符串中每个字符所占的 em 方框的高度 |
| origin | Point | 指定文本开始的位置 |
| stringFormat | const SharedPtr\<StringFormat\>\& | 字符串的格式 |

## 另见

* 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.Font for C++](../../../)
## GraphicsPath::AddString(const String\&, const SharedPtr\<FontFamily\>\&, int, float, PointF, const SharedPtr\<StringFormat\>\&) method


向当前对象表示的路径添加一串文本。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 文本 | const String\& | 要添加的文本 |
| family | const SharedPtr\<FontFamily\>\& | 用于绘制文本的字体系列 |
| style | int | 一个 [FontStyle](../../../system.drawing/fontstyle/) 枚举值，指定要使用的字体样式。 |
| emSize | float | 字符串中每个字符所占的 em 方框的高度 |
| origin | PointF | 指定文本开始的位置 |
| stringFormat | const SharedPtr\<StringFormat\>\& | 字符串的格式 |

## 另见

* 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.Font for C++](../../../)
## GraphicsPath::AddString(const String\&, const SharedPtr\<FontFamily\>\&, int, float, Rectangle, const SharedPtr\<StringFormat\>\&) method


向当前对象表示的路径添加一串文本。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 文本 | const String\& | 要添加的文本 |
| family | const SharedPtr\<FontFamily\>\& | 用于绘制文本的字体系列 |
| style | int | 一个 [FontStyle](../../../system.drawing/fontstyle/) 枚举值，指定要使用的字体样式。 |
| emSize | float | 字符串中每个字符所占的 em 方框的高度 |
| layoutRect | 矩形 | 一个包围文本的矩形 |
| stringFormat | const SharedPtr\<StringFormat\>\& | 字符串的格式 |

## 另见

* 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.Font for C++](../../../)
## GraphicsPath::AddString(const String\&, const SharedPtr\<FontFamily\>\&, int, float, RectangleF, const SharedPtr\<StringFormat\>\&) method


向当前对象表示的路径添加一串文本。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 文本 | const String\& | 要添加的文本 |
| family | const SharedPtr\<FontFamily\>\& | 用于绘制文本的字体系列 |
| style | int | 一个 [FontStyle](../../../system.drawing/fontstyle/) 枚举值，指定要使用的字体样式。 |
| emSize | float | 字符串中每个字符所占的 em 方框的高度 |
| layoutRect | RectangleF | 一个包围文本的矩形 |
| stringFormat | const SharedPtr\<StringFormat\>\& | 字符串的格式 |

## 另见

* 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.Font for C++](../../../)
