Aspose::Page::Font::DrFont::GetTextWidthPoints 方法
DrFont::GetTextWidthPoints(System::String) method
获取文本宽度(点)。
float Aspose::Page::Font::DrFont::GetTextWidthPoints(System::String text)
| Parameter | Type | 描述 |
|---|---|---|
| text | System::String | 要计算的文本。 |
ReturnValue
返回宽度
另见
- Class String
- Class DrFont
- Namespace Aspose::Page::Font
- Library Aspose.Page for C++
DrFont::GetTextWidthPoints(System::String, int32_t, int32_t) method
获取文本宽度(点)。
float Aspose::Page::Font::DrFont::GetTextWidthPoints(System::String text, int32_t startIndex, int32_t charCount)
| Parameter | Type | 描述 |
|---|---|---|
| text | System::String | 要计算的文本。 |
| startIndex | int32_t | 起始索引。 |
| charCount | int32_t | 字符计数。 |
ReturnValue
返回宽度
另见
- Class String
- Class DrFont
- Namespace Aspose::Page::Font
- Library Aspose.Page for C++