property OnFormSelectionRect: TPdfFormSelectionRectEvent read FOnFormSelectionRect write FOnFormSelectionRect;
对于表单层为焦点字段报告的每个不同选择矩形,OnFormSelectionRect 都会触发一次。处理器接收一个 TPdfFormSelectionRect,其中含从 1 开始的 PageNumber 和页面空间的 Bounds
连续的重复项会被抑制;每个报告的矩形还会追加到 FormSelectionRects 公开的列表中
procedure(Sender: TObject; const SelectionRect: TPdfFormSelectionRect) of objectFormSelectionRects 做批量重绘ClearFormSelectionRectsprocedure TMain.Pdf1FormSelectionRect(Sender: TObject; const SelectionRect: TPdfFormSelectionRect);
begin
HighlightSelection(SelectionRect.PageNumber, SelectionRect.Bounds);
end;