Table of Contents

Class DocxWriter

Namespace
DocWright.Formats.Docx
Assembly
DocWright.Formats.Docx.dll

Writes the DocWright document model back to an Office Open XML WordprocessingML package.

This is the second consumer of the DOM, parallel to the style resolver and independent of it: the writer never touches resolved or layout types, and reads only what the reader put in the model. It writes what it reads — no field re-evaluation, no renumbering, no normalization — because fidelity to the source is worth more than tidy output.

Preserved content is re-emitted rather than reconstructed. Unknown-XML islands go back out verbatim at their schema position, and opaque package parts are streamed through byte for byte with the relationships that reach them.

public sealed class DocxWriter : IDocumentWriter
Inheritance
DocxWriter
Implements
Inherited Members

Constructors

DocxWriter()

Properties

Format

Gets the format this writer produces.

Methods

Write(IDocWrightDocument, Stream, DocumentWriteOptions, IConversionDiagnostics)

Writes the document to the stream.