System::Drawing::Drawing2D::GraphicsPath::AddString method
内容
[
隐藏
]GraphicsPath::AddString(const String&, const SharedPtr<FontFamily>&, int, float, Point, const SharedPtr<StringFormat>&) method
向当前对象表示的路径添加一串文本。
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 枚举值,指定要使用的字体样式。 |
| emSize | float | 字符串中每个字符所占的 em 方框的高度 |
| origin | Point | 指定文本开始的位置 |
| stringFormat | const SharedPtr<StringFormat>& | 字符串的格式 |
另见
- Class String
- Typedef SharedPtr
- Class FontFamily
- Class Point
- Class 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
向当前对象表示的路径添加一串文本。
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 枚举值,指定要使用的字体样式。 |
| emSize | float | 字符串中每个字符所占的 em 方框的高度 |
| origin | PointF | 指定文本开始的位置 |
| stringFormat | const SharedPtr<StringFormat>& | 字符串的格式 |
另见
- Class String
- Typedef SharedPtr
- Class FontFamily
- Class PointF
- Class 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
向当前对象表示的路径添加一串文本。
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 枚举值,指定要使用的字体样式。 |
| emSize | float | 字符串中每个字符所占的 em 方框的高度 |
| layoutRect | 矩形 | 一个包围文本的矩形 |
| stringFormat | const SharedPtr<StringFormat>& | 字符串的格式 |
另见
- Class String
- Typedef SharedPtr
- Class FontFamily
- Class Rectangle
- Class 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
向当前对象表示的路径添加一串文本。
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 枚举值,指定要使用的字体样式。 |
| emSize | float | 字符串中每个字符所占的 em 方框的高度 |
| layoutRect | RectangleF | 一个包围文本的矩形 |
| stringFormat | const SharedPtr<StringFormat>& | 字符串的格式 |
另见
- Class String
- Typedef SharedPtr
- Class FontFamily
- Class RectangleF
- Class StringFormat
- Class GraphicsPath
- Namespace System::Drawing::Drawing2D
- Library Aspose.Font for C++