Table of Contents

Class StyleOptions

Namespace
AngleSharp.Css
Assembly
AngleSharp.dll

Transport object for evaluating stylesheets.

public sealed class StyleOptions
Inheritance
StyleOptions
Inherited Members
Extension Methods

Constructors

StyleOptions(IDocument)

Creates new style options for the given document.

public StyleOptions(IDocument document)

Parameters

document IDocument

The document to use.

Properties

Document

Gets the parent document for hosting the style sheet.

public IDocument Document { get; }

Property Value

IDocument

Element

Gets or sets the element that triggered the evaluation.

public IElement? Element { get; set; }

Property Value

IElement

IsAlternate

Gets or sets if the stylesheet is an alternate.

public bool IsAlternate { get; set; }

Property Value

bool

IsDisabled

Gets or sets if the stylesheet is disabled.

public bool IsDisabled { get; set; }

Property Value

bool