Interface IWebBrowser
Declares methods and properties which allow to work with WebBrowser control.
public interface IWebBrowser : IWebBrowserLite
Properties
- CanZoomIn
Gets a value indicating whether the zoom factor of the page can be increased, which allows the ZoomIn() method to succeed.
- CanZoomOut
Gets a value indicating whether the zoom factor of the page can be decreased, which allows the ZoomOut() method to succeed.
- Source
Gets or sets the Uri of the current document hosted in the WebBrowser.
- Url
Gets or sets the URL of the current document hosted in the WebBrowser.
Methods
- InvokeScriptAsync(string, IntPtr, params object[])
Executes the given JavaScript function asynchronously and returns the result via a ScriptResult event.
- Navigate(string)
Loads the document at the specified Uniform Resource Locator (URL) into the WebBrowser control, replacing the previous document.
- Navigate(Uri)
Loads the document at the location indicated by the specified Uri into the WebBrowser control, replacing the previous document.
- NavigateToStream(Stream)
Navigate to a Stream that contains the content for a document.
- ToInvokeScriptArg(object)
Converts the value to the JSON string.
- ZoomIn()
Increases the zoom factor of the page.
- ZoomOut()
Decreases the zoom factor of the page.
Events
- DocumentTitleChanged
Occurs when the web page title changes. Use Text to get the title.
- Error
Occurs when a navigation error occurs.
- FullScreenChanged
Occurs when the the page wants to enter or leave fullscreen.
- Loaded
Occurs when the WebBrowser control finishes loading a document.
- Navigated
Occurs when the WebBrowser control has navigated to a new web page and has begun loading it.
- Navigating
Occurs before the WebBrowser control navigates to a new web page.
- NewWindow
Occurs when a new browser window is created.
- ScriptMessageReceived
Occurs when your application receives message from JS code of the loaded web page.
- ScriptResult
Occurs when your application receives results after RunScriptAsync call.