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
IDocumentThe document to use.
Properties
Document
Gets the parent document for hosting the style sheet.
public IDocument Document { get; }
Property Value
Element
Gets or sets the element that triggered the evaluation.
public IElement? Element { get; set; }
Property Value
IsAlternate
Gets or sets if the stylesheet is an alternate.
public bool IsAlternate { get; set; }
Property Value
IsDisabled
Gets or sets if the stylesheet is disabled.
public bool IsDisabled { get; set; }