Component: TPdfView · Unit: PDFium
Removes every search highlight range from the viewer
Syntax
procedure ClearHighlight;
Description
The method clears the complete set built by HighlightSearchText and AddSearchTextHighlight
Former highlight rectangles on the active page are invalidated individually so clearing a small result set does not repaint the full viewer
Remarks
- Calling the method when no search highlights exist is safe and does not schedule a repaint
- Calling the method on an inactive view clears stale range state without resolving page rectangles
Example
PdfView1.ClearHighlight;
See Also