AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.0.1-alpha-243" />

 IStyleFormatter

public interface IStyleFormatter
Basic interface for CSS node serialization.

Creates the serialization of the declarations with the provided string representations.

Concats the given rules to create a block serialization.

string Comment(string data)

Creates a serialization of a comment with the provided data.

string Declaration(string name, string value, bool important)

Creates the serialization of a declaration with the given name, value and important flag.

string Rule(string name, string value)

Converts the name and value of the provided rule to a simple rule.

string Rule(string name, string prelude, string rules)

Converts the name, prelude and rules of the provided rule to a composed rule.

Concats the given rules to create the stylesheet serialization.