AngleSharp by Florian Rappl

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

.NET API 1,113,600 bytes

 CssStyleDeclaration

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

Gets or sets the textual representation of the declaration block.

public bool IsReadOnly { get; }

Gets if the style declaration is read-only and must not be modified.

public string this[int index] { get; }

Gets the name of the property at the given index.

public int Length { get; }

Gets the number of properties in the declaration.

public ICssRule Parent { get; }

Gets the containing CSSRule.

public event EventHandler Changed

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)

Removes the given property and returns its value.

public void SetProperty(string propertyName, string propertyValue, string priority = null)

Sets a property with the given name and value.

public void SetPropertyPriority(string propertyName, string priority)

public void SetPropertyValue(string propertyName, string propertyValue)