Table of Contents

Method Layout

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

Layout(WordDocument, IConversionDiagnostics?)

Lays a document out from the start and keeps the result.

public LayoutDocument Layout(WordDocument document, IConversionDiagnostics? diagnostics = null)

Parameters

document WordDocument

The document.

diagnostics IConversionDiagnostics

Where to report, or null.

Returns

LayoutDocument

The layout, as StyleResolver.Resolve and LayoutEngine.Layout would produce it.

Exceptions

ArgumentNullException

document is null.