AngleSharp by AngleSharp

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

 IStyleFormatter

public interface IStyleFormatter
Basic interface for CSS node serialization.
using System.Collections.Generic; using System.Runtime.CompilerServices; namespace AngleSharp { [System.Runtime.CompilerServices.NullableContext(1)] public interface IStyleFormatter { string Sheet(IEnumerable<IStyleFormattable> rules); string Declaration(string name, string value, bool important); string BlockDeclarations(IEnumerable<IStyleFormattable> declarations); string Rule(string name, string value); string Rule(string name, string prelude, string rules); string BlockRules(IEnumerable<IStyleFormattable> rules); string Comment(string data); } }