Table of Contents

Class BlankDocument

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

Creates the document Word creates for File > New > Blank document: Word 2013–2021's Normal template, whose body face (Calibri) the open font bundle has a metric-compatible substitute for.

public static class BlankDocument
Inheritance
BlankDocument
Inherited Members

Remarks

The document has one section with the requested page, one empty paragraph, document defaults (Calibri 11 pt, 8 pt after, 1.08 lines), the styles Word's template defines (Normal, Default Paragraph Font, Normal Table, No List) and the built-in ones Word adds the first time they are applied, so a consumer can apply them by id: Heading1, Heading2, Heading3, Title, Subtitle, ListParagraph. Fonts and colours are values, not theme references: a document built in memory is written with no theme part, and Word resolves theme references in a package without one to its current theme (Aptos) instead.

Methods

Create(BlankDocumentOptions?)

Creates a blank document.