System::Drawing::Drawing2D::GraphicsPath::AddString 方法
内容
[
隐藏
]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)
| Parameter | Type | 描述 |
|---|---|---|
| text | const String& | 要添加的文本 |
| 族 | const SharedPtr<FontFamily>& | 用于绘制文本的字体系列 |
| style | int | 一个指定要使用的字体样式的 FontStyle 枚举值 |
| emSize | 单精度浮点数 | 字符串中每个字符所占的 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.Page 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)
| Parameter | Type | 描述 |
|---|---|---|
| text | const String& | 要添加的文本 |
| 族 | const SharedPtr<FontFamily>& | 用于绘制文本的字体系列 |
| style | int | 一个指定要使用的字体样式的 FontStyle 枚举值 |
| emSize | 单精度浮点数 | 字符串中每个字符所占的 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.Page 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)
| Parameter | Type | 描述 |
|---|---|---|
| text | const String& | 要添加的文本 |
| 族 | const SharedPtr<FontFamily>& | 用于绘制文本的字体系列 |
| style | int | 一个指定要使用的字体样式的 FontStyle 枚举值 |
| emSize | 单精度浮点数 | 字符串中每个字符所占的 em 方框的高度 |
| layoutRect | 矩形 | 包围文本的矩形 |
| stringFormat | const SharedPtr<StringFormat>& | 字符串的格式 |
另见
- Class String
- Typedef SharedPtr
- Class FontFamily
- Class Rectangle
- Class StringFormat
- Class GraphicsPath
- Namespace System::Drawing::Drawing2D
- Library Aspose.Page 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)
| Parameter | Type | 描述 |
|---|---|---|
| text | const String& | 要添加的文本 |
| 族 | const SharedPtr<FontFamily>& | 用于绘制文本的字体系列 |
| style | int | 一个指定要使用的字体样式的 FontStyle 枚举值 |
| emSize | 单精度浮点数 | 字符串中每个字符所占的 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.Page for C++