GetFormulaWidth

文本、公式布局、测量

描述

使用当前字体和文本大小返回已解析数学公式的宽度

语法

Delphi

Function TPDFlib.GetFormulaWidth(Const Formula: WideString): Double;

ActiveX

Function PDFlib::GetFormulaWidth(Formula As String) As Double

DLL

double DLGetFormulaWidth(int InstanceID, const wchar_t * Formula);

参数

Formula要测量的公式源

返回值

返回活动测量单位中的公式宽度,输入为空时返回 0

备注

结果包括分数字间距、上下标偏移、根号、可选根指数和嵌套组

DLL DLGetFormulaWidthA 变体按配置的 ANSI 模式接受文本