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
PreferredStyleSheetSet
Gets the preferred stylesheet set.
[DomName("preferredStyleSheetSet")]
string? PreferredStyleSheetSet { get; }
Property Value
SelectedStyleSheetSet
Gets or sets the selected set of stylesheets.
[DomName("selectedStyleSheetSet")]
string? SelectedStyleSheetSet { get; set; }
Property Value
StyleSheetSets
Gets a live list of all of the currently-available style sheet sets.
[DomName("styleSheetSets")]
IStringList StyleSheetSets { get; }
Property Value
StyleSheets
Gets a list of stylesheet objects for stylesheets explicitly linked into or embedded in a document.
[DomName("styleSheets")]
IStyleSheetList StyleSheets { get; }
Property Value
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
stringThe name of the sheets to enable.