Table of Contents

Class ResolvedDocumentSettings

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

Document-level resolved settings that layout consumes.

public sealed class ResolvedDocumentSettings
Inheritance
ResolvedDocumentSettings
Inherited Members

Properties

AutoHyphenation

Gets automatic hyphenation.

CompatibilityMode

Gets the effective OOXML compatibility mode (always ≥ 15 in this phase).

CompressesJustifiedSpaces

Gets whether a justified line may be broken tighter than its natural width, taking one more word and compressing its inter-word spaces to fit.

DecimalSymbol

Gets the decimal separator used by decimal tabs.

DefaultLanguage

Gets the document's default language tag from the document defaults, or null when none is declared.

DefaultTabStop

Gets the interval of automatic tab stops in twips.

DocGridLinePitch

Gets the section document-grid line pitch (w:docGrid linePitch), or null.

DocGridType

Gets the document-grid mode (w:docGrid type). Only line-grid modes snap line height.

EastAsianLineBreaking

Gets whether a line may break between any two East Asian characters. True when the document declares compatibility mode 14 (Word 2010) or later; false for mode 12 and earlier and for a document that declares no mode, which Word opens as Word 2007: there an East Asian character is a word character, a run of them wraps as one word, and a run longer than the line breaks at the last character that fits (WQ-0046). Word applies no kinsoku in either mode on a machine without an East Asian editing language, and DocWright applies none.

EvenAndOddHeaders

Gets distinct even/odd headers and footers.

ListSeparator

Gets the list separator.

MirrorMargins

Gets mirrored margins for facing pages.

OpenTypeKerning

Gets where a run's pair kerning (w:kern) comes from. True when the document declares compatibility mode 15 (Word 2013) or later: the face's OpenType GPOS kern feature, through the language system of the run's script, and the legacy kern table only for a face whose GPOS has no such feature. False for mode 14 and earlier and for a document that declares no mode, which Word opens as Word 2007: the legacy kern table alone, so a face that kerns only in GPOS (Carlito) is not kerned. Measured as WQ-0049 across modes 12, 14, 15 and absent on Word's own exports of .docx files differing in that one element and nothing else, on four faces whose two tables disagree or where only one exists; an OpenType feature on the run (w14:ligatures) changes nothing in any mode. Read from the declared mode, not the clamped one, like CompressesJustifiedSpaces.

PageBackground

Gets the colour filling the whole page (w:background), or null when the document has no background or w:displayBackgroundShape is off. It paints edge to edge, under the margins and under every other layer.

SharesJustificationSlackByWidth

Gets whether a justified line's slack is shared among its spaces in proportion to each space's own width (true from compatibility mode 15, Word 2013) or equally (every earlier mode, and a document that declares no mode). WQ-0056: measured on Word's mode-15 export, where a space tracked 3 pt wider than its neighbours takes twice their share, and on the mode-11 export of the same sentence, where every space takes the same. Read from the DECLARED mode, like CompressesJustifiedSpaces.

SumsAdjacentParagraphSpacing

Gets whether a paragraph's space-after adds to the next paragraph's space-before instead of collapsing against it.