Interface IWebView
Describes web view object.
public interface IWebView : IDisposable
- Inherited Members
Properties
CanExecuteJavascriptInMainFrame
Gets a flag that indicates if you can execute javascript in the main frame.
bool CanExecuteJavascriptInMainFrame { get; }
Property Value
WindowHost
Gets window host for the web view. Doesn't apply to off-screen views.
Window WindowHost { get; }
Property Value
Methods
Close()
Closes view.
void Close()
DeleteCookies(string, string)
Deletes cookies.
void DeleteCookies(string url, string name)
Parameters
DeleteDomainCookies(string)
Deletes all cookies from specified domain.
void DeleteDomainCookies(string domain)
Parameters
domain
stringCookie domain.
DeleteDomainCookiesRegex(string)
Deletes all cookies from domains matching specified regular expression.
void DeleteDomainCookiesRegex(string domainRegex)
Parameters
domainRegex
string
EvaluateScriptAsync(string)
Evaluates JavaScript script in the browser instance.
Task<JavaScriptEvaluationResult> EvaluateScriptAsync(string script)
Parameters
script
string
Returns
GetCookies()
Gets all cookies.
List<HttpCookie> GetCookies()
Returns
- List<HttpCookie>
List of cookies.
GetCurrentAddress()
Gets current URL address.
string GetCurrentAddress()
Returns
- string
URL address.
GetPageSource()
Gets document source.
string GetPageSource()
Returns
- string
Document source.
GetPageSourceAsync()
Gets document source.
Task<string> GetPageSourceAsync()
Returns
GetPageText()
Gets page text.
string GetPageText()
Returns
- string
Page text.
GetPageTextAsync()
Gets page text.
Task<string> GetPageTextAsync()
Returns
Navigate(string)
Navigates to url.
void Navigate(string url)
Parameters
url
stringURL to load.
NavigateAndWait(string)
Navigates to url and wait for page to be loaded.
void NavigateAndWait(string url)
Parameters
url
stringURL to load.
Open()
Open view.
void Open()
OpenDialog()
Open view as modal dialog.
bool? OpenDialog()
Returns
- bool?
SetCookies(string, HttpCookie)
Sets cookie data.
void SetCookies(string url, HttpCookie cookie)
Parameters
url
stringCookie URL.
cookie
HttpCookieCookie data.
SetCookies(string, string, string, string, string, DateTime)
Sets cookie data.
void SetCookies(string url, string domain, string name, string value, string path, DateTime expires)
Parameters
url
stringCookie URL.
domain
stringCookie domain.
name
stringCookie name.
value
stringCookie value.
path
stringCookie url path.
expires
DateTimeExpiration date.
Events
LoadingChanged
Occurs when web view loading changes, for example when page is loaded.
event EventHandler<WebViewLoadingChangedEventArgs> LoadingChanged