PeachBrackets

PeachBrackets.Building

DeclarativePage Class

One page of a document built in code: the tree of nodes that is its content, and the page-level settings that go with it (the content repeated in the page margins, and which geometry the builder fixed).

public sealed class DeclarativePage

Inheritance System.Object → DeclarativePage

Remarks

Make one with CreatePage() and turn it into a laid-out document with CreateAsync(DeclarativePage, HtmlDocumentOptions, StyleSheet).

Properties  
Overrides Which geometry the builder set explicitly; a style sheet’s @page rule leaves those alone. None by default.
Root The root of the page’s content: a block box that has no parent.
Methods  
AddMarginBox(string, string) Puts content into one of the page’s margin boxes on every page, as an @page rule’s @top-center and the like do.