PDFium Component Docs

TrackReadingWordAt method

Component: TPdfView  ·  Unit: PDFium
یک offset نویسهٔ صفحه را به 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

Example

var WordIndex: Integer;
begin
  WordIndex := PdfView1.TrackReadingWordAt(PdfView1.PageNumber, Voice.Status.InputWordPosition);
end;

See Also

PageWordBoxes, SetReadingWord, ClearReadingWord, ReadingWordColor, ReadingWordFollow, SetReadingHighlight