Class StyleResolver
Projects the mutable DOM into an immutable ResolvedDocument — the one bridge between editing and layout, and it is one-way. Resolution order follows ECMA-376 §17.7.2: document defaults, table style layers (with §17.7.6 conditional formatting per w:tblLook), paragraph style chain, numbering level properties, character style chain, then direct formatting; toggle properties get §17.7.3 XOR semantics. Theme fonts and colors resolve to concrete values; tracked changes are collapsed per RevisionView.
public static class StyleResolver
- Inheritance
-
StyleResolver
- Inherited Members
Remarks
Deliberate Word-observed deviation from the literal §17.7.2 ordering: numbering-level paragraph properties (indents) are applied AFTER the paragraph style chain, because Word lets a list level's indentation override the paragraph style's (see WORDQUIRKS.md). Direct formatting still overrides both.
Fields
- MaxContainerNestingDepth
The hard ceiling on how deeply resolution will descend through nested containers — tables and content controls — regardless of MaxNestedTableDepth.
- MaxSectionColumns
The largest section column count resolution will project, above which the surplus is dropped with a diagnostic.
Methods
- Resolve(WordDocument, ResolveOptions?)
Resolves a document.