property OnFormSelectionRect: TPdfFormSelectionRectEvent read FOnFormSelectionRect write FOnFormSelectionRect;
OnFormSelectionRect は、フォーカスされたフィールドについてフォームレイヤーが報告する個々の選択矩形ごとに 1 回発火します。ハンドラーは 1 基点の PageNumber とページ空間の Bounds を持つ TPdfFormSelectionRect を受け取ります
連続する重複は抑制されます。報告された各矩形は FormSelectionRects が公開するリストにも追加されます
procedure(Sender: TObject; const SelectionRect: TPdfFormSelectionRect) of objectFormSelectionRects を使用してくださいClearFormSelectionRects を呼び出してくださいprocedure TMain.Pdf1FormSelectionRect(Sender: TObject; const SelectionRect: TPdfFormSelectionRect);
begin
HighlightSelection(SelectionRect.PageNumber, SelectionRect.Bounds);
end;