Table of Contents

Method Find

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Find(string, WebBrowserFindParams?)

Finds a text on the current page and if found, the control will scroll the text into view and select it.

int Find(string text, WebBrowserFindParams? prm = null)

Parameters

text string

The phrase to search for.

prm WebBrowserFindParams

The 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().