PDFium Delphi Component Docs

TrackReadingWordAt 메서드

컴포넌트: TPdfView  ·  유닛: 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

Example

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

See Also

PageWordBoxes, SetReadingWord, ClearReadingWord, ReadingWordColor, ReadingWordFollow, SetReadingHighlight