PDFium Delphi Component Docs

OnFormSelectionRect 이벤트

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

구문

property OnFormSelectionRect: TPdfFormSelectionRectEvent read FOnFormSelectionRect write FOnFormSelectionRect;

설명

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

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

참고 사항

예제

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

관련 항목

FormSelectionRects, ClearFormSelectionRects, TPdfView.SelectionRectangles