Component: TPdfView · Unit: PDFium
ממפה היסט תו בעמוד אל TPdfWordBox המכיל אותו, מדגיש אותו ומחזיר את אינדקס המילה
Syntax
function TrackReadingWordAt(PageNumber, CharIndex: Integer): Integer;
Description
Maps a page character offset to the containing TPdfWordBox, highlights it, and returns the word index
Remarks
- API names, type names, and PDF terms keep their original spelling so code search remains reliable
- Call this member after the owning document or viewer is active
Example
var WordIndex: Integer;
begin
WordIndex := PdfView1.TrackReadingWordAt(PdfView1.PageNumber, Voice.Status.InputWordPosition);
end;
See Also