PDFium Delphi Component Docs

ClearFormSelectionRects method

Component: TPdf  ·  Unit: PDFium
Clears the accumulated form selection rectangles

Syntax

procedure ClearFormSelectionRects;

Description

ClearFormSelectionRects empties the list returned by FormSelectionRects so the next reported rectangle starts a fresh accumulation

Call it whenever the focused field changes or before repainting selection overlays to avoid drawing stale rectangles

Remarks

Example

Pdf1.ClearFormSelectionRects;
PdfView1.Invalidate;

See Also

FormSelectionRects, OnFormSelectionRect