| IBrowser Interface |
Namespace: CefSharp
The IBrowser type exposes the following members.
| Name | Description | |
|---|---|---|
| CanGoBack |
Returns true if the browser can navigate backwards.
| |
| CanGoForward |
Returns true if the browser can navigate forwards.
| |
| FocusedFrame |
Returns the focused frame for the browser window.
| |
| HasDocument |
Returns true if a document has been loaded in the browser.
| |
| Identifier |
Returns the globally unique identifier for this browser.
| |
| IsDisposed |
Gets a value indicating whether the browser has been disposed of.
| |
| IsLoading |
Returns true if the browser is currently loading.
| |
| IsPopup |
Returns true if the window is a popup window.
| |
| MainFrame |
Returns the main (top-level) frame for the browser window.
|
| Name | Description | |
|---|---|---|
| CloseBrowser |
Request that the browser close. The JavaScript 'onbeforeunload' event will
be fired. If |forceClose| is false the event handler, if any, will be
allowed to prompt the user and the user can optionally cancel the close.
If |force_close| is true the prompt will not be displayed and the close
will proceed. Results in a call to CefLifeSpanHandler::DoClose() if the
event handler allows the close or if |force_close| is true. See
CefLifeSpanHandler::DoClose() documentation for additional usage
information.
| |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
| GetFrame(Int64) |
Returns the frame with the specified identifier, or NULL if not found.
| |
| GetFrame(String) |
Returns the frame with the specified name, or NULL if not found.
| |
| GetFrameCount |
Returns the number of frames that currently exist.
| |
| GetFrameIdentifiers |
Returns the identifiers of all existing frames.
| |
| GetFrameNames |
Returns the names of all existing frames.
| |
| GetHost |
Returns the browser host object. This method can only be called in the browser process.
| |
| GoBack |
Navigate backwards.
| |
| GoForward |
Navigate forwards.
| |
| IsSame |
Returns true if this object is pointing to the same handle as that object.
| |
| Reload |
Reload the current page.
| |
| StopLoad |
Stop loading the page.
|
| Name | Description | |
|---|---|---|
| AddWordToDictionary |
Add the specified word to the spelling dictionary.
(Defined by WebBrowserExtensions.) | |
| CloseDevTools |
Explicitly close the developer tools window if one exists for this browser instance.
(Defined by WebBrowserExtensions.) | |
| Find |
Search for text within the current page.
(Defined by WebBrowserExtensions.) | |
| GetZoomLevelAsync |
Asynchronously gets the current Zoom Level.
(Defined by WebBrowserExtensions.) | |
Opens a Print Dialog which if used (can be user cancelled) will print the browser contents.
(Defined by WebBrowserExtensions.) | ||
| PrintToPdfAsync |
Asynchronously prints the current browser contents to the PDF file specified.
The caller is responsible for deleting the file when done.
(Defined by WebBrowserExtensions.) | |
| ReplaceMisspelling |
If a misspelled word is currently selected in an editable node calling
this method will replace it with the specified word.
(Defined by WebBrowserExtensions.) | |
| SendMouseWheelEvent | (Defined by WebBrowserExtensions.) | |
| SetZoomLevel |
Change the ZoomLevel to the specified value. Can be set to 0.0 to clear the zoom level.
(Defined by WebBrowserExtensions.) | |
| ShowDevTools |
Open developer tools in its own window.
(Defined by WebBrowserExtensions.) | |
| StopFinding |
Cancel all searches that are currently going on.
(Defined by WebBrowserExtensions.) |