PDFiumPas 文件

CurrentCharIndex 屬性

此 API 條目保留識別符號、簽名、程式碼塊和 PDF 術語的原始形式。
元件: TPdfView  ·  單元: PDFium
Read-only zero-based character index under the current mouse cursor (or last hit-tested point).

語法

property CurrentCharIndex: Integer;

說明

目前滑鼠游標下方(或最後一次 hit-tested 的點)的唯讀 0 起算字元索引

供內建搜尋反白器使用;當游標不在文字上時傳回 -1

所有 TPdfView 的顯示屬性在指派時都會觸發重繪,因此你可以連續修改多個屬性而不會閃爍,因為重新繪製會合併成一次無效化

備註

範例

begin
  PdfView1.CurrentCharIndex := {value};
  PdfView1.Active := True;
end;

另請參閱

Active, Pdf, Options, Zoom