IFrame Interface |
Namespace: DotNetBrowser.Frames
public interface IFrame : IAutoDisposable
The IFrame type exposes the following members.
Name | Description | |
---|---|---|
Browser |
The IBrowser instance associated with this frame.
| |
Children |
The collection of the child frames.
| |
Document |
The IDocument that can be used to work with DOM of the frame. Can be null if the frame doesn't have
a document.
| |
Html |
The HTML content of the frame. Can be an empty string
if the frame doesn't have a content or its content is empty.
| |
IsDisposed |
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.) | |
IsMain |
Indicates whether the frame is a main (top-level) frame in the browser.
| |
LocalStorage |
The localStorage instance of this frame.
| |
Name |
The name of the frame. Can be an empty string if the frame doesn't have a name.
| |
Parent |
The parent frame.
| |
SelectedHtml |
The HTML representation of the selected content in the frame. Can be an empty string if there's no selection.
| |
SelectedText |
The text representation of the selected content in the frame. Can be an empty string if there's no selection.
| |
SessionStorage |
The sessionStorage instance of this frame.
| |
Text |
Gets the content of the frame and its sub-frames as plain text or an empty string if the
frame does not have content or its content is empty.
|
Name | Description | |
---|---|---|
Execute |
Executes the given command in the frame.
Before executing the command, it's recommended to check whether it can be executed or not
using the IsCommandEnabled(EditorCommand) method.
| |
ExecuteJavaScript(String, Boolean) |
Asynchronously executes JavaScript code using the current context.
| |
ExecuteJavaScriptT(String, Boolean) |
Asynchronously executes JavaScript code using the current context and
converts the execution result to the specified .NET type.
| |
Inspect(Point) |
Inspects the given location in the frame and returns the result of inspection.
| |
Inspect(Int32, Int32) |
Inspects the given location in the frame and returns the result of inspection.
| |
IsCommandEnabled |
Indicates if the command with the given command can be executed in the frame.
Some commands can be executed only under certain conditions.
For example, the InsertText(String) command can be executed only if there's a focused text
field in the frame.
| |
LoadUrl(String) |
Navigates the frame to a resource identified by the given url.
| |
LoadUrl(String, TimeSpan) |
Navigates the frame to a resource identified by the given url.
| |
Requests printing of the currently loaded web page in this frame.
| ||
ViewSource |
Opens a popup with the frame's source like the browser does when showing page source.
|
Name | Description | |
---|---|---|
Disposed |
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.) |
Name | Description | |
---|---|---|
ParseJsonString(String) | Overloaded.
Creates an object that represents the result of parsing the given string in JSON format.
(Defined by JsonExtensions.) | |
ParseJsonStringT(String) | Overloaded.
Creates an object that represents the result of parsing the given string in JSON format.
(Defined by JsonExtensions.) |