Table of Contents

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 IDocument

The document to use.

loop IEventLoop

The event loop to use.

Properties

Document

Gets the parent document of the executing script.

public IDocument Document { get; }

Property Value

IDocument

Element

Gets or sets the script element that triggered the invocation.

public IHtmlScriptElement? Element { get; set; }

Property Value

IHtmlScriptElement

Encoding

Gets or sets the encoding that has been selected for the script.

public Encoding? Encoding { get; set; }

Property Value

Encoding

EventLoop

Gets the event loop for the executing script.

public IEventLoop EventLoop { get; }

Property Value

IEventLoop