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;

说明

Read-only zero-based character index under the current mouse cursor (or last hit-tested point).

供内置查找高亮器使用;当光标不在文本上方时返回 -1

所有 TPdfView 显示属性在赋值时都会触发重绘,因此你可以连续修改多个属性而不会闪烁,因为重绘会合并为一次失效

备注

示例

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

另请参阅

Active, Pdf, Options, Zoom