Aspose::Page::Font::DrFont::GetTextWidthPoints 方法

DrFont::GetTextWidthPoints(System::String) method

获取文本宽度(点)。

float Aspose::Page::Font::DrFont::GetTextWidthPoints(System::String text)
ParameterType描述
textSystem::String要计算的文本。

ReturnValue

返回宽度

另见

DrFont::GetTextWidthPoints(System::String, int32_t, int32_t) method

获取文本宽度(点)。

float Aspose::Page::Font::DrFont::GetTextWidthPoints(System::String text, int32_t startIndex, int32_t charCount)
ParameterType描述
textSystem::String要计算的文本。
startIndexint32_t起始索引。
charCountint32_t字符计数。

ReturnValue

返回宽度

另见