AngleSharp by Florian Rappl

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

 CSSStyleDeclaration

Represents a single CSS declaration block.
public string CssText { get; set; }

Gets or sets the textual representation of the declaration block.

public string this[int index] { get; }

Returns a property name.

public int Length { get; }

Gets the number of properties in the declaration.

public CSSRule ParentRule { get; }

Gets the containing CSSRule.

Returns an ienumerator that enumerates over all entries.

public string GetPropertyPriority(string propertyName)

Returns the optional priority, "important".

public string GetPropertyValue(string propertyName)

Returns the value of a property.

public string RemoveProperty(string propertyName)

Returns the value deleted.

public CSSStyleDeclaration SetProperty(string propertyName, string propertyValue)

Sets a property with the given name and value.

public string ToCss()

Returns the CSS representation of the list of rules.