AngleSharp by Florian Rappl

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

.NET API 1,176,064 bytes

 CssStyleSheet

Represents a CSS Stylesheet.
public string CssText { get; }

Gets a CSS code representation of the stylesheet.

public ICssRule OwnerRule { get; }

Gets the @import rule if the stylesheet was importated otherwise it returns null.

public int Insert(string rule, int index)

Inserts a new style rule into the current style sheet.

public void RemoveAt(int index)

Removes a style rule from the current style sheet object.