DAGetTextBlockCharWidth
文本、字体、提取、直接访问功能
描述
返回指定文本块中特定字符的宽度
语法
Delphi
Function TPDFlib.DAGetTextBlockCharWidth(TextBlockListID, Index, CharIndex: Integer): Double;
ActiveX
Function PDFlib::DAGetTextBlockCharWidth(TextBlockListID As Long, Index As Long, CharIndex As Long) As Double
DLL
double DLDAGetTextBlockCharWidth(int InstanceID, int TextBlockListID, int Index, int CharIndex);
参数
| TextBlockListID | 由 DAExtractPageTextBlocks 或 ExtractFilePageTextBlocks 函数返回的值 |
|---|---|
| Index | 文本块的索引。列表中的第一个文本块索引为 1 |
| CharIndex | 要获取宽度的字符索引。第一个字符的索引为 1 |