IWebBrowser Interface (original) (raw)
Name
Description
Add the specified word to the spelling dictionary.
(Defined by WebBrowserExtensions.)
Navigates back, must check CanGoBack before calling this method.
(Defined by WebBrowserExtensions.)
Explicitly close the developer tools window if one exists for this browser instance.
(Defined by WebBrowserExtensions.)
Execute Copy on the focused frame.
(Defined by WebBrowserExtensions.)
Execute Cut on the focused frame.
(Defined by WebBrowserExtensions.)
Execute Delete on the focused frame.
(Defined by WebBrowserExtensions.)
Manually call https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-destroywindow passing in the handle returned from GetWindowHandle. This method can be used to manually close the underlying CefBrowser instance. This will avoid the WM_Close message that CEF sends by default to the top level window. (Which closes your application). This method should generally only be used in the WinForms version.
(Defined by WebBrowserExtensions.)
Make sure an object is bound in javascript. Executes against the main frame
(Defined by JavascriptBindingExtensions.)
Evaluate Javascript in the context of the MainFrame of the ChromiumWebBrowser. The script will be executed asynchronously and the method returns a Task encapsulating the response from the Javascript. The result of the script execution in javascript is Promise.resolve so even no promise values will be treated as a promise. Your javascript should return a value. The javascript will be wrapped in an Immediately Invoked Function Expression. When the promise either trigger then/catch this returned Task will be completed.
(Defined by WebBrowserExtensions.)
EvaluateScriptAsync(String, Object)
Overloaded.
Evaluate some Javascript code in the context of this WebBrowser. The script will be executed asynchronously and the method returns a Task encapsulating the response from the Javascript This simple helper extension will encapsulate params in single quotes (unless int, uint, etc)
(Defined by WebBrowserExtensions.)
EvaluateScriptAsync(NullableTimeSpan, String, Object)
Overloaded.
Evaluate Javascript code in the context of this WebBrowser using the specified timeout. The script will be executed asynchronously and the method returns a Task encapsulating the response from the Javascript This simple helper extension will encapsulate params in single quotes (unless int, uint, etc).
(Defined by WebBrowserExtensions.)
EvaluateScriptAsync(String, NullableTimeSpan, Boolean)
Overloaded.
Evaluate Javascript in the context of this Browsers Main Frame. The script will be executed asynchronously and the method returns a Task encapsulating the response from the Javascript
(Defined by WebBrowserExtensions.)
EvaluateScriptAsyncT(String, NullableTimeSpan)
Overloaded.
Evaluate Javascript in the context of this Browsers Main Frame. The script will be executed asynchronously and the method returns a Task encapsulating the response from the Javascript
(Defined by WebBrowserExtensionsEx.)
Execute a method call over the DevTools protocol. This is a more structured version of SendDevToolsMessage. ExecuteDevToolsMethod(IBrowserHost, Int32, String, JsonString) can only be called on the CEF UI Thread, this method can be called on any thread. See the DevTools protocol documentation at https://chromedevtools.github.io/devtools-protocol/ for details of supported methods and the expected parameters dictionary contents. See the SendDevToolsMessage documentation for additional usage information.
(Defined by DevToolsExtensions.)
Overloaded.
Execute Javascript in the context of this Browsers Main Frame. As the method name implies, the script will be executed asynchronously, and the method therefore returns before the script has actually been executed.
(Defined by WebBrowserExtensions.)
ExecuteScriptAsync(String, Object)
Overloaded.
Execute Javascript code in the context of this Browser. As the method name implies, the script will be executed asynchronously, and the method therefore returns before the script has actually been executed. This simple helper extension will encapsulate params in single quotes (unless int, uint, etc)
(Defined by WebBrowserExtensions.)
ExecuteScriptAsyncWhenPageLoaded
Execute Javascript code in the context of this Browsers Main Frame. This extension method uses the LoadingStateChanged event. As the method name implies, the script will be executed asynchronously, and the method therefore returns before the script has actually been executed.
(Defined by WebBrowserExtensions.)
Search for text within the current page.
(Defined by WebBrowserExtensions.)
Navigates forward, must check CanGoForward before calling this method.
(Defined by WebBrowserExtensions.)
Shortcut method to get the browser IBrowserHost.
(Defined by WebBrowserExtensions.)
(Defined by WebBrowserExtensions.)
Gets a new Instance of the DevTools client for the chromiumWebBrowser instance.
(Defined by DevToolsExtensions.)
Returns the focused frame for the browser window.
(Defined by WebBrowserExtensions.)
Returns the main (top-level) frame for the browser window.
(Defined by WebBrowserExtensions.)
(Defined by WebBrowserExtensions.)
Retrieve the main frame's HTML source using a TaskTResult.
(Defined by WebBrowserExtensions.)
Retrieve the main frame's display text using a TaskTResult.
(Defined by WebBrowserExtensions.)
GetVisibleNavigationEntryAsync
(Defined by WebBrowserExtensionsEx.)
Asynchronously gets the current Zoom Level.
(Defined by WebBrowserExtensions.)
Overloaded.
Loads html as Data Uri See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics\_of\_HTTP/Data\_URIs for details If base64Encode is false then html will be Uri encoded.
(Defined by WebBrowserExtensions.)
Overloaded.
Registers and loads a ResourceHandler that represents the HTML content.
(Defined by WebBrowserExtensions.)
LoadHtml(String, String, Encoding, Boolean)
Overloaded.
Registers and loads a ResourceHandler that represents the HTML content.
(Defined by WebBrowserExtensions.)
Creates a new instance of IRequest with the specified Url and Method = POST and then callsLoadRequest(IRequest).
(Defined by WebBrowserExtensions.)
Execute Paste on the focused frame.
(Defined by WebBrowserExtensions.)
Opens a Print Dialog which if used (can be user cancelled) will print the browser contents.
(Defined by WebBrowserExtensions.)
Asynchronously prints the current browser contents to the PDF file specified. The caller is responsible for deleting the file when done.
(Defined by WebBrowserExtensions.)
Execute Redo on the focused frame.
(Defined by WebBrowserExtensions.)
Asynchronously registers a Javascript object in this specific browser instance.
Only methods of the object will be availabe.
(Defined by WebBrowserExtensions.)
Registers a Javascript object in this specific browser instance.
(Defined by WebBrowserExtensions.)
Register a ResourceHandler. Can only be used when browser.ResourceHandlerFactory is an instance of DefaultResourceHandlerFactory.
(Defined by WebBrowserExtensions.)
Overloaded.
Reloads the page being displayed. This method will use data from the browser's cache, if available.
(Defined by WebBrowserExtensions.)
Overloaded.
Reloads the page being displayed, optionally ignoring the cache (which means the whole page including all .css, .js etc. resources will be re-fetched).
(Defined by WebBrowserExtensions.)
If a misspelled word is currently selected in an editable node calling this method will replace it with the specified word.
(Defined by WebBrowserExtensions.)
Execute SelectAll on the focused frame.
(Defined by WebBrowserExtensions.)
Send a mouse wheel event to the browser.
(Defined by WebBrowserExtensions.)
An IWebBrowser extension method that sets the HasParent property used when passing a ChromiumWebBrowser instance to OnBeforePopup(IWebBrowser, IBrowser, IFrame, String, String, WindowOpenDisposition, Boolean, IPopupFeatures, IWindowInfo, IBrowserSettings, Boolean, IWebBrowser)
(Defined by WebBrowserExtensions.)
SetMainFrameDocumentContentAsync
Set the Document Content for the Main Frame using DevTools Protocol.
(Defined by DevToolsExtensions.)
Change the ZoomLevel to the specified value. Can be set to 0.0 to clear the zoom level.
(Defined by WebBrowserExtensions.)
Open developer tools in its own window.
(Defined by WebBrowserExtensions.)
ShowDevToolsDocked(ActionChromiumHostControl, String, DockStyle, Int32, Int32)
Overloaded.
Open DevTools using your own Control as the parent. If inspectElementAtX and/or inspectElementAtY are specified then the element at the specified (x,y) location will be inspected. For resize/moving to work correctly you will need to use the LifeSpanHandler implementation. (Set LifeSpanHandler to an instance of LifeSpanHandler)
(Defined by WebBrowserExtensions.)
ShowDevToolsDocked(Control, String, DockStyle, Int32, Int32)
Overloaded.
Open DevTools using parentControl as the parent control. If inspectElementAtX and/or inspectElementAtY are specified then the element at the specified (x,y) location will be inspected. For resize/moving to work correctly you will need to use the LifeSpanHandler implementation. (Set LifeSpanHandler to an instance of LifeSpanHandler)
(Defined by WebBrowserExtensions.)
(Defined by WebBrowserExtensions.)
Stops loading the current page.
(Defined by WebBrowserExtensions.)
Cancel all searches that are currently going on.
(Defined by WebBrowserExtensions.)
Toggles audio mute for the current browser. If the browser is null or has been disposed then this command will be a no-op.
(Defined by WebBrowserExtensionsEx.)
Execute Undo on the focused frame.
(Defined by WebBrowserExtensions.)
Unregister a ResourceHandler. Can only be used when browser.ResourceHandlerFactory is an instance of DefaultResourceHandlerFactory.
(Defined by WebBrowserExtensions.)
Opens up a new program window (using the default text editor) where the source code of the currently displayed web page is shown.
(Defined by WebBrowserExtensions.)
Waits for a DOM element specified by the selector string to be added to or removed from the DOM. A simplified version of Puppeteer WaitForSelector. Uses a MutationObserver to wait for the element to become added or removed.
(Defined by WebBrowserExtensions.)