PDFium Delphi Component Docs

OnFormSelectionRect 이벤트

컴포넌트: TPdf  ·  유닛: PDFium
폼 레이어가 보고하는 선택 사각형마다 발생합니다

Syntax

property OnFormSelectionRect: TPdfFormSelectionRectEvent read FOnFormSelectionRect write FOnFormSelectionRect;

Description

OnFormSelectionRect는 포커스된 필드에 대해 폼 레이어가 보고하는 서로 다른 선택 사각형마다 한 번씩 발생합니다. 핸들러는 1 기반 PageNumber와 페이지 공간 Bounds를 담은 TPdfFormSelectionRect를 받습니다

연속된 중복은 억제되며, 보고된 모든 사각형은 FormSelectionRects가 노출하는 목록에도 추가됩니다

Remarks

    • 핸들러 시그니처: procedure(Sender: TObject; const SelectionRect: TPdfFormSelectionRect) of object
    • 즉시 오버레이를 그릴 때는 라이브 이벤트를, 일괄 다시 그리기에는 FormSelectionRects를 사용하세요
    • 포커스가 다른 필드로 옮겨가면 ClearFormSelectionRects를 호출하세요

Example

procedure TMain.Pdf1FormSelectionRect(Sender: TObject; const SelectionRect: TPdfFormSelectionRect);
begin
  HighlightSelection(SelectionRect.PageNumber, SelectionRect.Bounds);
end;

See Also