AngleSharp by AngleSharp

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

.NET API 1,218,560 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 bool IsStrictMode { get; }

Gets if unknown declarations are not allowed.

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 Action<string> 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)

public void Update(string value)