AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.9" />

.NET API 1,181,184 bytes

 StyleSheet

Represent a stylesheet object.
public string Href { get; }

Gets the value of the attribute, which is its location. For inline style sheets, the value of this attribute is null.

public bool IsDisabled { get; set; }

Gets or sets if the stylesheet is applied to the document. Modifying this attribute may cause a new resolution of style for the document. If the media doesn't apply to the current user agent, the disabled attribute is ignored.

public IMediaList Media { get; }

Gets the intended destination media for style information. The media is often specified in the ownerNode. If no media has been specified, the MediaList is empty.

public IElement OwnerNode { get; }

Gets the element that associates this style sheet with the document.

public IStyleSheet Parent { get; }

Gets the parent stylesheet for style sheet languages that support the concept of style sheet inclusion.

public string Title { get; }

Gets the advisory title. The title is often specified in the ownerNode.

public virtual string Type { get; }

Gets the style sheet language for this style sheet.

public string ToCss()

public abstract string ToCss(IStyleFormatter formatter)