Table of Contents

Class LayoutEngine

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

Lays out a resolved document into renderer-agnostic page primitives.

public sealed class LayoutEngine
Inheritance
LayoutEngine
Inherited Members

Constructors

LayoutEngine(FontEngine)

Initializes a layout engine using the given font engine.

LayoutEngine(FontEngine, ITextShaper?)

Initializes a layout engine using the given font engine and text shaper.

Properties

Checkpoint

Gets or sets a callback invoked at block, table-row, page and section boundaries during layout. Throwing from it aborts the layout; returning normally continues it.

DefaultLanguage

Gets or sets a fallback BCP 47 language tag used when the resolved document declares none, or null (the default) to leave the language undeclared.

EmitLogicalStructure

Gets or sets a value indicating whether composition emits logical-structure marks for tagged output. Default false.

MaxImagePixelsLimit

Gets or sets an optional ceiling on the pixels of any one bitmap a metafile embeds. Null means no cap.

MaxNestedTableDepthLimit

Gets or sets an optional hard cap for nested table depth. Null means no caller-configured cap (the engine's built-in compatibility cap still applies).

Methods

Layout(ResolvedDocument, IConversionDiagnostics?)

Lays out a resolved document to pages and positioned primitives.