function WordBoxIndexAtCharIndex(const Words: TPdfWordBoxes; CharIndex: Integer): Integer;
| Words | TPdfWordBoxes |
| CharIndex | Integer |
IntegerWordBoxIndexAtCharIndex palauttaa nollapohjaisen sanalaatikkoindeksin, jonka StartIndex ja Count sisältävät pyydetyn merkkihakemiston, tai -1, kun mikään sana ei vastaa
Käytä tulosta valitaksesi, mikä TPdfWordBox tulisi korostaa tai valita TTS-kohdistimen edetessä
-1 when CharIndex is outside every word rangeIndex := WordBoxIndexAtCharIndex(Words, PdfView1.CurrentCharIndex);
if Index >= 0 then
PdfView1.SelectWordBox(Words[Index]);