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 one by one so that clearing a small result set does not repaint the whole viewer
Remarks
- Calling the method when there are no search highlights 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