PeachBrackets
PeachBrackets.HtmlDocument
HtmlDocument.CreateAsync(DeclarativePage, HtmlDocumentOptions, StyleSheet) Method
Makes a document from a page built in code instead of parsed from HTML, ready to be laid out.
public static System.Threading.Tasks.Task<PeachBrackets.HtmlDocument> CreateAsync(PeachBrackets.Building.DeclarativePage page, PeachBrackets.HtmlDocumentOptions? options=null, PeachBrackets.Building.StyleSheet? styleSheet=null);
Parameters
page DeclarativePage
the page, made by CreatePage() and filled with nodes
options HtmlDocumentOptions
the page size, margins and style environment, or null for the defaults of HtmlDocumentOptions
styleSheet StyleSheet
rules applied to the tree, including an @page rule for geometry the page did not set itself, or null for none
Returns
System.Threading.Tasks.Task<HtmlDocument>
the document
Exceptions
System.ArgumentNullException
page is null