GetFormulaHeight
文字、公式排版、量測
描述
以目前字型與文字大小,傳回已解析數學公式的完整上伸與下伸高度
語法
Delphi
Function TPDFlib.GetFormulaHeight(Const Formula: WideString): Double;ActiveX
Function PDFlib::GetFormulaHeight(Formula As String) As DoubleDLL
double DLGetFormulaHeight(int InstanceID, const wchar_t * Formula);參數
| Formula | 要量測的公式來源 |
|---|
傳回值
以目前量測單位傳回公式高度;輸入為空時傳回 0
備註
傳回的高度包含堆疊分式、上標、下標、根號橫線與根指數
DLGetFormulaHeightA 這個 DLL 變體依設定的 ANSI 模式接受文字