ChromiumWebBrowser Methods |
The ChromiumWebBrowser type exposes the following members.
Name | Description | |
---|---|---|
CreateBrowser |
Create the underlying browser. The instance address, browser settings and request context will be used.
| |
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
| |
Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Finalizes an instance of the ChromiumWebBrowser class.
(Overrides ObjectFinalize.) | |
GetBrowser |
Returns the current CEF Browser Instance
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetScreenInfo |
Gets the screen information (scale factor).
| |
GetScreenPoint |
Called to retrieve the translation from view coordinates to actual screen coordinates.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetViewRect |
Gets the view rect (width, height)
| |
Load |
Loads the specified URL.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnCursorChange | Obsolete.
Called when the browser's cursor has changed. .
| |
OnImeCompositionRangeChanged | Obsolete. | |
OnPaint | Obsolete.
Called when an element should be painted. (Invoked from CefRenderHandler.OnPaint)
| |
OnPopupShow | Obsolete. | |
OnPopupSize | Obsolete.
Called when the browser wants to move or resize the popup widget.
| |
RegisterAsyncJsObject | Asynchronously registers a Javascript object in this specific browser instance. Only methods of the object will be availabe. | |
RegisterJsObject |
Registers a Javascript object in this specific browser instance.
| |
ScreenshotAsync |
Starts a task that waits for the next rendering from Chrome.
Chrome also renders the page loading, so if you want to see a complete rendering,
only start this task once your page is loaded (which you can detect via FrameLoadEnd
or your own heuristics based on evaluating JavaScript).
It is your responsibility to dispose the returned Bitmap.
The bitmap size is determined by the Size property set earlier.
| |
ScreenshotOrNull |
Immediately returns a copy of the last rendering from Chrome,
or null if no rendering has occurred yet.
Chrome also renders the page loading, so if you want to see a complete rendering,
only start this task once your page is loaded (which you can detect via FrameLoadEnd
or your own heuristics based on evaluating JavaScript).
It is your responsibility to dispose the returned Bitmap.
The bitmap size is determined by the Size property set earlier.
| |
StartDragging | Obsolete.
Starts dragging.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateDragCursor | Obsolete. |
Name | Description | |
---|---|---|
AddWordToDictionary |
Add the specified word to the spelling dictionary.
(Defined by WebBrowserExtensions.) | |
Back |
Navigates back, must check CanGoBack before calling this method.
(Defined by WebBrowserExtensions.) | |
CloseDevTools |
Explicitly close the developer tools window if one exists for this browser instance.
(Defined by WebBrowserExtensions.) | |
Copy |
Execute Copy on the focused frame
(Defined by WebBrowserExtensions.) | |
Cut |
Execute Cut on the focused frame
(Defined by WebBrowserExtensions.) | |
Delete |
Execute Delete on the focused frame
(Defined by WebBrowserExtensions.) | |
EnsureObjectBoundAsync |
Make sure an object is bound in javascript. Executes against the main frame
(Defined by JavascriptBindingExtensions.) | |
EvaluateScriptAsync(String, NullableTimeSpan) | Overloaded. (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 some 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.) | |
ExecuteScriptAsync(String) | Overloaded.
Execute some Javascript code in the context of this WebBrowser. 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 some Javascript code in the context of this WebBrowser. 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.) | |
Find |
Search for text within the current page.
(Defined by WebBrowserExtensions.) | |
Forward |
Navigates forward, must check CanGoForward before calling this method.
(Defined by WebBrowserExtensions.) | |
GetBrowserHost |
Shortcut method to get the browser IBrowserHost
(Defined by WebBrowserExtensions.) | |
GetCookieManager |
Gets the default cookie manager associated with the IWebBrowser
(Defined by WebBrowserExtensions.) | |
GetFocusedFrame |
Returns the focused frame for the browser window.
(Defined by WebBrowserExtensions.) | |
GetMainFrame |
Returns the main (top-level) frame for the browser window.
(Defined by WebBrowserExtensions.) | |
GetSourceAsync |
Retrieve the main frame's HTML source using a TaskTResult.
(Defined by WebBrowserExtensions.) | |
GetTextAsync |
Retrieve the main frame's display text using a TaskTResult.
(Defined by WebBrowserExtensions.) | |
GetZoomLevelAsync |
Asynchronously gets the current Zoom Level.
(Defined by WebBrowserExtensions.) | |
LoadHtml(String, String) | Overloaded.
Registers and loads a ResourceHandler that represents the HTML content.
(Defined by WebBrowserExtensions.) | |
LoadHtml(String, Boolean) | 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.) | |
LoadHtml(String, String, Encoding, Boolean) | Overloaded.
Registers and loads a ResourceHandler that represents the HTML content.
(Defined by WebBrowserExtensions.) | |
LoadString |
Load the string contents with the specified dummy url. Web security restrictions may not behave as expected.
(Defined by WebBrowserExtensions.) | |
LoadUrlWithPostData |
Loads
Creates a new instance of IRequest with the specified Url and Method = POST
(Defined by WebBrowserExtensions.) | |
Paste |
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.) | ||
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.) | |
Redo |
Execute Redo on the focused frame
(Defined by WebBrowserExtensions.) | |
RegisterResourceHandler |
Register a ResourceHandler. Can only be used when browser.ResourceHandlerFactory is an instance of DefaultResourceHandlerFactory
(Defined by WebBrowserExtensions.) | |
Reload | Overloaded.
Reloads the page being displayed. This method will use data from the browser's cache, if available.
(Defined by WebBrowserExtensions.) | |
Reload(Boolean) | 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.) | |
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.) | |
SelectAll |
Execute SelectAll on the focused frame
(Defined by WebBrowserExtensions.) | |
SendMouseWheelEvent | (Defined by WebBrowserExtensions.) | |
SetAsPopup | (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.) | |
Stop |
Stops loading the current page.
(Defined by WebBrowserExtensions.) | |
StopFinding |
Cancel all searches that are currently going on.
(Defined by WebBrowserExtensions.) | |
ThrowExceptionIfBrowserNotInitialized | (Defined by WebBrowserExtensions.) | |
Undo |
Execute Undo on the focused frame
(Defined by WebBrowserExtensions.) | |
UnRegisterResourceHandler |
Unregister a ResourceHandler. Can only be used when browser.ResourceHandlerFactory is an instance of DefaultResourceHandlerFactory
(Defined by WebBrowserExtensions.) | |
ViewSource |
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.) |