Memo1.Lines.Add(IntToStr(PdfView1.CurrentCharIndex));
CurrentCharIndex - TPdfView - PDFium Delphi Component
PDFium Delphi Component Docs

CurrentCharIndex 속성

컴포넌트: TPdfView  ·  유닛: PDFium
호환을 위해 남긴, 애플리케이션이 선택한 0 기반 문자 인덱스입니다(기본값 0)

구문

property CurrentCharIndex: Integer; // default 0

설명

뷰에서 애플리케이션이 관리하는 문자 인덱스를 읽거나 씁니다(기본값 0). 이 프로퍼티에 값을 대입하면 정수만 저장하고 다시 그리기를 유발하지도, 활성 텍스트 선택을 바꾸지도 않습니다

런타임에 마우스 커서 아래 문자를 히트 테스트하려면 PdfView1.CharacterIndexAtPos를 호출하거나, 클라이언트 좌표를 DeviceToPage로 변환한 뒤 Pdf.CharacterIndexAtPos로 조회하세요

참고 사항

예제

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

관련 항목

Active, Pdf, Options, Zoom