Table of Contents

Class LayoutDocument

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

Immutable renderer-agnostic layout result: pages and positioned primitives in twips.

public sealed class LayoutDocument : ILaidOutDocument
Inheritance
LayoutDocument
Implements
Inherited Members

Constructors

LayoutDocument(IReadOnlyList<LayoutPage>)

Initializes a layout document.

LayoutDocument(IReadOnlyList<LayoutPage>, string?)

Initializes a layout document with a default language.

LayoutDocument(IReadOnlyList<LayoutPage>, string?, IReadOnlyDictionary<string, int>?)

Initializes a layout document with a default language and the page each bookmark starts on.

Properties

BookmarkPages

Gets each bookmark's name and the 1-based page it starts on, as layout placed it (empty for a layout another producer built). What a PAGEREF field shows is that page's PageNumberText.

Language

Gets the document's default BCP 47 language tag, or null.

PageCount

Gets the number of laid-out pages.

Pages

Methods

FindBookmarkPage(string)

The 1-based page a bookmark starts on, or null when the layout placed no bookmark of that name.