Table of Contents

Interface IDocumentStyle

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

Extends the document with further properties for styling.

[DomName("DocumentStyle")]
[DomNoInterfaceObject]
public interface IDocumentStyle
Extension Methods

Properties

LastStyleSheetSet

Gets the last stylesheet set.

[DomName("lastStyleSheetSet")]
string? LastStyleSheetSet { get; }

Property Value

string

PreferredStyleSheetSet

Gets the preferred stylesheet set.

[DomName("preferredStyleSheetSet")]
string? PreferredStyleSheetSet { get; }

Property Value

string

SelectedStyleSheetSet

Gets or sets the selected set of stylesheets.

[DomName("selectedStyleSheetSet")]
string? SelectedStyleSheetSet { get; set; }

Property Value

string

StyleSheetSets

Gets a live list of all of the currently-available style sheet sets.

[DomName("styleSheetSets")]
IStringList StyleSheetSets { get; }

Property Value

IStringList

StyleSheets

Gets a list of stylesheet objects for stylesheets explicitly linked into or embedded in a document.

[DomName("styleSheets")]
IStyleSheetList StyleSheets { get; }

Property Value

IStyleSheetList

Methods

EnableStyleSheetsForSet(string)

Enables the stylesheets matching the specified name in the current style sheet set, and disables all other style sheets (except those without a title, which are always enabled).

[DomName("enableStyleSheetsForSet")]
void EnableStyleSheetsForSet(string name)

Parameters

name string

The name of the sheets to enable.