AngleSharp by Florian Rappl

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

.NET API 1,174,016 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 string this[string name] { get; }

Gets the value of the property with the given name.

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)

public string GetPropertyValue(string propertyName)

public string RemoveProperty(string propertyName)

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

public void SetPropertyPriority(string propertyName, string priority)

public void SetPropertyValue(string propertyName, string propertyValue)

public string ToCss()

public string ToCss(IStyleFormatter formatter)