Interface IWebView
Describes web view object.
Inherited members
Properties
| Improve this Doc View SourceCanExecuteJavascriptInMainFrame
Gets a flag that indicates if you can execute javascript in the main frame.
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClose()
Closes view.
DeleteCookies(String, String)
Deletes cookies.
Parameters
Type | Name | Description |
---|---|---|
System.String | url | Cookie URL. |
System.String | name | Cookie name. |
DeleteDomainCookies(String)
Deletes all cookies from specified domain.
Parameters
Type | Name | Description |
---|---|---|
System.String | domain | Cookie domain. |
EvaluateScriptAsync(String)
Evaluates JavaScript script in the browser instance.
Parameters
Type | Name | Description |
---|---|---|
System.String | script |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<JavaScriptEvaluationResult> |
GetCookies()
Gets all cookies.
Returns
Type | Description |
---|---|
System.Collections.Generic.List<HttpCookie> | List of cookies. |
GetCurrentAddress()
Gets current URL address.
Returns
Type | Description |
---|---|
System.String | URL address. |
GetPageSource()
Gets document source.
Returns
Type | Description |
---|---|
System.String | Document source. |
GetPageSourceAsync()
Gets document source.
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | Document source task. |
GetPageText()
Gets page text.
Returns
Type | Description |
---|---|
System.String | Page text. |
GetPageTextAsync()
Gets page text.
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | Page text. |
Navigate(String)
Navigates to url.
Parameters
Type | Name | Description |
---|---|---|
System.String | url | URL to load. |
NavigateAndWait(String)
Navigates to url and wait for page to be loaded.
Parameters
Type | Name | Description |
---|---|---|
System.String | url | URL to load. |
Open()
Open view.
OpenDialog()
Open view as modal dialog.
Returns
Type | Description |
---|---|
System.Nullable<System.Boolean> |
SetCookies(String, HttpCookie)
Sets cookie data.
Parameters
Type | Name | Description |
---|---|---|
System.String | url | Cookie URL. |
HttpCookie | cookie | Cookie data. |
SetCookies(String, String, String, String, String, DateTime)
Sets cookie data.
Parameters
Type | Name | Description |
---|---|---|
System.String | url | Cookie URL. |
System.String | domain | Cookie domain. |
System.String | name | Cookie name. |
System.String | value | Cookie value. |
System.String | path | Cookie url path. |
System.DateTime | expires | Expiration date. |
Events
| Improve this Doc View SourceLoadingChanged
Occurs when web view loading changes, for example when page is loaded.
Event Type
Type | Description |
---|---|
System.EventHandler<WebViewLoadingChangedEventArgs> |