PDFiumPas 文件

TrackReadingWordAt 方法

元件: TPdfView  ·  單元: PDFium
將頁面字元偏移對應到包含它的 TPdfWordBox,反白該詞並傳回詞索引

Syntax

function TrackReadingWordAt(PageNumber, CharIndex: Integer): Integer;

Description

將頁面字元偏移對應到包含它的 TPdfWordBox,反白該字詞並傳回字詞索引

Remarks

Example

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

See Also

PageWordBoxes, SetReadingWord, ClearReadingWord, ReadingWordColor, ReadingWordFollow, SetReadingHighlight