function WordBoxIndexAtCharIndex(const Words: TPdfWordBoxes; CharIndex: Integer): Integer;
| Words | TPdfWordBoxes |
| CharIndex | Integer |
IntegerWordBoxIndexAtCharIndex, istenen karakter indeksini StartIndex ve Count aralığında içeren kelime kutusunun sıfır tabanlı indeksini döndürür; hiçbir kelime eşleşmezse -1
Sonucu, TTS imleci ilerledikçe hangi TPdfWordBox öğesinin vurgulanacağını ya da seçileceğini belirlemek için kullanın
-1 when CharIndex is outside every word rangeIndex := WordBoxIndexAtCharIndex(Words, PdfView1.CurrentCharIndex);
if Index >= 0 then
PdfView1.SelectWordBox(Words[Index]);