GetTextBlockCharWidth

Texte, polices, extraction

Description

Renvoie la largeur d’un caractère précis dans le bloc de texte indiqué

Syntaxe

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

Paramètres

TextBlockListIDValeur renvoyée par la fonction ExtractPageTextBlocks Indice du bloc de texte. Le premier bloc de texte de la liste a l'indice 1
Index
CharIndexL'index du caractère dont la largeur doit être récupérée Le premier caractère porte l'index 1