Class ScriptOptions
- Namespace
- AngleSharp.Scripting
- Assembly
- AngleSharp.dll
Transport object for running scripts.
public sealed class ScriptOptions
- Inheritance
-
ScriptOptions
- Inherited Members
- Extension Methods
Constructors
ScriptOptions(IDocument, IEventLoop)
Creates new script options for the given document.
public ScriptOptions(IDocument document, IEventLoop loop)
Parameters
document
IDocumentThe document to use.
loop
IEventLoopThe event loop to use.
Properties
Document
Gets the parent document of the executing script.
public IDocument Document { get; }
Property Value
Element
Gets or sets the script element that triggered the invocation.
public IHtmlScriptElement? Element { get; set; }
Property Value
Encoding
Gets or sets the encoding that has been selected for the script.
public Encoding? Encoding { get; set; }
Property Value
EventLoop
Gets the event loop for the executing script.
public IEventLoop EventLoop { get; }