PeachBrackets

PeachBrackets.Building.StyleSheet

StyleSheet.ParseAsync Method

Overloads  
ParseAsync(RenderContext, string, bool) Parses css into a style sheet.
ParseAsync(RenderContext, ReadOnlyMemory<char>, bool) Parses css into a style sheet.

StyleSheet.ParseAsync(RenderContext, string, bool) Method

Parses css into a style sheet.

public static System.Threading.Tasks.Task<PeachBrackets.Building.StyleSheet> ParseAsync(PeachDrawing.Core.RenderContext renderContext, string css, bool combineWithDefault=true);

Parameters

renderContext RenderContext

the context that resolves the fonts and resources the rules name

css System.String

the CSS text

combineWithDefault System.Boolean

whether the built-in defaults (the user-agent style sheet) are included, so the rules layer over them

Returns

System.Threading.Tasks.Task<StyleSheet>
the parsed style sheet

StyleSheet.ParseAsync(RenderContext, ReadOnlyMemory<char>, bool) Method

Parses css into a style sheet.

public static System.Threading.Tasks.Task<PeachBrackets.Building.StyleSheet> ParseAsync(PeachDrawing.Core.RenderContext renderContext, System.ReadOnlyMemory<char> css, bool combineWithDefault=true);

Parameters

renderContext RenderContext

the context that resolves the fonts and resources the rules name

css System.ReadOnlyMemory<System.Char>

the CSS text

combineWithDefault System.Boolean

whether the built-in defaults (the user-agent style sheet) are included, so the rules layer over them

Returns

System.Threading.Tasks.Task<StyleSheet>
the parsed style sheet