IFrame Methods |
The IFrame type exposes the following members.
Name | Description | |
---|---|---|
Copy |
Execute copy in this frame.
| |
CreateRequest |
Create a custom request for use with LoadRequest(IRequest) | |
CreateUrlRequest |
Create a new URL request that will be treated as originating from this frame
and the associated browser. This request may be intercepted by the client via
IResourceRequestHandler or ISchemeHandlerFactory.
Use IUrlRequest.Create instead if you do not want the request to have
this association, in which case it may be handled differently (see documentation on that method).
Requests may originate from both the browser process and the render process.
For requests originating from the browser process: - POST data may only contain a single element
of type PDE_TYPE_FILE or PDE_TYPE_BYTES.
For requests originating from the render process: - POST data may only contain a single element of type PDE_TYPE_BYTES.
- If the response contains Content-Disposition or Mime-Type header values that would not normally be rendered then
the response may receive special handling inside the browser
for example, via the file download code path instead of the URL request code path).
The request object will be marked as read-only after calling this method.
| |
Cut |
Execute cut in this frame.
| |
Delete |
Execute delete in this frame.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
EvaluateScriptAsync |
Execute some Javascript code in the context of this WebBrowser, and return the result of the evaluation
in an Async fashion
| |
ExecuteJavaScriptAsync |
Execute a string of JavaScript code in this frame.
| |
GetSource |
Retrieve this frame's HTML source as a string sent to the specified visitor.
Use the GetSourceAsync method for a Task based async wrapper
| |
GetSourceAsync |
Retrieve this frame's HTML source as a string sent to the specified visitor.
| |
GetText |
Retrieve this frame's display text as a string sent to the specified visitor.
Use the GetTextAsync method for a Task based async wrapper
| |
GetTextAsync |
Retrieve this frame's display text as a string sent to the specified visitor.
| |
LoadRequest |
Load the custom request.
WARNING: This method will fail with "bad IPC message" reason
INVALID_INITIATOR_ORIGIN (213) unless you first navigate to the
request origin using some other mechanism (LoadURL, link click, etc).
| |
LoadUrl |
Load the specified url.
| |
Paste |
Execute paste in this frame.
| |
Redo |
Execute redo in this frame.
| |
SelectAll |
Execute select all in this frame.
| |
Undo |
Execute undo in this frame.
| |
ViewSource |
Save this frame's HTML source to a temporary file and open it in the
default text viewing application. This method can only be called from the
browser process.
|
Name | Description | |
---|---|---|
DownloadUrl |
Downloads the specified url and calls completeHandler
when the download is complete. Makes a GET Request.
(Defined by WebBrowserExtensionsEx.) | |
DownloadUrlAsync |
Downloads the specified url as a [!:byte[]].
Makes a GET Request.
(Defined by WebBrowserExtensionsEx.) | |
EvaluateScriptAsPromiseAsync |
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. 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.) | |
LoadHtml |
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.) |