PDFium Delphi Component Docs

ClearHighlight method

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

Example

PdfView1.ClearHighlight;

See Also

HighlightSearchText, AddSearchTextHighlight, HighlightColor