GetTextBlockCharWidth

文本, 字体, 提取

描述

返回指定文本块中特定字符的宽度

语法

Delphi

Function TPDFlib.GetTextBlockCharWidth(TextBlockListID, Index, CharIndex: Integer): Double;

ActiveX

Function PDFlib::GetTextBlockCharWidth(TextBlockListID As Long, Index As Long, CharIndex As Long) As Double

DLL

double DLGetTextBlockCharWidth(int InstanceID, int TextBlockListID, int Index, int CharIndex);

参数

TextBlockListID由 ExtractPageTextBlocks 函数返回的值;文本块索引,列表中第一个文本块索引为 1
Index
CharIndex要获取宽度的字符索引。第一个字符的索引为 1