PeachBrackets

PeachBrackets.Building

StyleSheet Class

A parsed CSS style sheet, ready to apply to a document or to an HTML fragment spliced into one.

public sealed class StyleSheet

Inheritance System.Object → StyleSheet

Remarks

A style sheet can be built from the built-in defaults plus your rules (the usual case) or from your rules alone, and rules can be added after parsing. It belongs to the RenderContext it was parsed with: the context resolves the fonts and resources the rules name.

Methods  
AddAsync(string) Adds rules to the style sheet, after the ones it already has.
AddAsync(ReadOnlyMemory<char>) Adds rules to the style sheet, after the ones it already has.
ParseAsync(RenderContext, string, bool) Parses css into a style sheet.
ParseAsync(RenderContext, ReadOnlyMemory<char>, bool) Parses css into a style sheet.