StyleSheet Class

https://drafts.csswg.org/cssom/#the-stylesheet-interface

public abstract class StyleSheet

Properties

NameDescription
Disabledhttps://drafts.csswg.org/cssom/#dom-stylesheet-disabled
Hrefhttps://drafts.csswg.org/cssom/#dom-stylesheet-href: the location of the style sheet (null for embedded and constructed style sheets).
MediaGets the media queries associated with the style sheet.
OwnerNodehttps://drafts.csswg.org/cssom/#dom-stylesheet-ownernode: the element or processing instruction that created the style sheet.
ParentStyleSheethttps://drafts.csswg.org/cssom/#dom-stylesheet-parentstylesheet: the style sheet that imports this style sheet with an @import rule.
Titlehttps://drafts.csswg.org/cssom/#dom-stylesheet-title: the title of a link element is a reference to its attribute.
TypeGets the media type of the style sheet, always text/css.

https://drafts.csswg.org/cssom/#dom-stylesheet-disabled

public bool Disabled { get; set; }

https://drafts.csswg.org/cssom/#dom-stylesheet-href: the location of the style sheet (null for embedded and constructed style sheets).

public string? Href { get; }

Gets the media queries associated with the style sheet.

public MediaList Media { get; }

https://drafts.csswg.org/cssom/#dom-stylesheet-ownernode: the element or processing instruction that created the style sheet.

public Node? OwnerNode { get; }

ParentStyleSheet

CssStyleSheet.cs

https://drafts.csswg.org/cssom/#dom-stylesheet-parentstylesheet: the style sheet that imports this style sheet with an @import rule.

public CssStyleSheet? ParentStyleSheet { get; }

https://drafts.csswg.org/cssom/#dom-stylesheet-title: the title of a link element is a reference to its attribute.

public string? Title { get; }

Gets the media type of the style sheet, always text/css.

public string Type { get; }