PDFiumPas 文件

CurrentCharIndex 属性

组件: TPdfView  ·  单元: PDFium
当前鼠标光标下(或上次命中测试点处)的只读从零开始的字符索引

Syntax

property CurrentCharIndex: Integer;

Description

当前鼠标光标下(或上次命中测试点处)的只读从零开始的字符索引

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

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

Remarks

Example

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

See Also

Active, Pdf, Options, Zoom