Table of Contents

Method ToWordDocument

Namespace
DocWright.Composition
Assembly
DocWright.Composition.dll

ToWordDocument()

Lowers the composition to a mutable document.

This is the escape hatch: anything the fluent surface cannot express can be done here with the full editing API, and the result still renders through the same pipeline.

public WordDocument ToWordDocument()

Returns

WordDocument

A new document. Each call lowers again, so callers get their own copy.

Exceptions

InvalidOperationException

Two pages set different default text styles, which Word cannot model.