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 函式傳回的值
Index文字區塊的索引。清單中第一個區塊的索引為 1。
CharIndex要取出寬度的字元索引。第一個字元的索引為 1。

傳回值

傳回字元寬度,已依文件比例係數縮放為點。TextBlockListID 並未識別有效的文字區塊清單時傳回 0。