Method Find
Find(string, WebBrowserFindParams?)
Finds a text on the current page and if found, the control will scroll the text into view and select it.
public virtual int Find(string text, WebBrowserFindParams? prm = null)
Parameters
text
stringThe phrase to search for.
prm
WebBrowserFindParamsThe parameters for the search.
Returns
- int
If search phrase was not found in combination with the flags then -1 is returned.
If called for the first time with search phrase then the total number of results will be returned. Then for every time its called with the same search phrase it will return the number of the current match.
Remarks
This function will restart the search if the search params are changed, since this will require a new search.
To reset the search, for example resetting the highlighted text call FindClearResult().