iesniffer ClearMarks method
Return to Introduction  Previous page  Next page
Applies to
IESniffer component.  

Declaration
function ClearMarks(Browser: IWebBrowser2; const MarkID: String = 'IESnifferMark'): Integer;  

Description
The ClearMarks method clear the marks from keywords, which has been highlighted with MarkText method.  
 
When you call ClearMarks you just need to specify the Browser window and MarkID, which should be the same which has been used when you called MarkText method.  

Example
procedure TBandForm.SetHighlighter(Value: Boolean);  
begin  
  if Value then  
    IESniffer1.MarkText(IE, FKeywords, clBlack, clYellow)  
  else  
    IESniffer1.ClearMarks(IE);  
end;  

See also
MarkText and ReplaceText methods.