PDFium Delphi Component Docs

CurrentCharIndex property

Component: TPdfView  ·  Unit: PDFium
Application-selected zero-based character index retained for compatibility (default 0)

Syntax

property CurrentCharIndex: Integer; // default 0

Description

Reads or writes an application-managed character index on the view (defaults to 0). Assigning this property stores the integer value without triggering a repaint or modifying the active text selection

To hit-test the character under the mouse cursor at runtime, call PdfView1.CharacterIndexAtPos or convert client coordinates with DeviceToPage and query Pdf.CharacterIndexAtPos

Remarks

Example

begin
  PdfView1.Active := True;
  Memo1.Lines.Add(IntToStr(PdfView1.CurrentCharIndex));
end;

See Also

Active, Pdf, Options, Zoom