GetTextBlockCharWidth

文本, 字体, 提取

说明

本页介绍 PDFlibPas 中属于“文本, 字体, 提取”主题的 GetTextBlockCharWidth。API 名称、参数、类名、文件名和字面量保持原样,以便和 Delphi 库及 DLL 入口点完全对应。

调用函数前请查看语法、参数和返回值。代码块保留原始形式,便于示例直接复制使用。

语法

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);

参数

TextBlockListIDTextBlockListIDGetTextBlockCharWidth 的参数。请使用签名中显示的类型,并提供与当前 PDF 文档、所选页面或活动资源一致的值。
IndexIndexGetTextBlockCharWidth 的参数。请使用签名中显示的类型,并提供与当前 PDF 文档、所选页面或活动资源一致的值。
CharIndexCharIndexGetTextBlockCharWidth 的参数。请使用签名中显示的类型,并提供与当前 PDF 文档、所选页面或活动资源一致的值。