Namespace DocWright.Compare
Classes
- CompareOptions
How DocumentComparer aligns two documents and what it writes into the result.
Every option that could otherwise vary between runs is caller-supplied. There is no ambient clock and no generated id: the same two documents compared twice with the same options produce byte-identical output.
- CompareResult
The outcome of comparing two documents: the result document plus what the comparer had to say about how it got there.
- DetectedMove
A paragraph the comparer recognised as moved rather than rewritten: the same content at a different position in each document.
- DocumentComparer
Compares two documents and produces a third that carries both, as tracked changes.
The result is built from the revised document — its styles, numbering, theme, settings and preserved parts — with a body woven from both sides: content only the original had is marked deleted, content only the revised has is marked inserted, and content they share is unmarked. Accepting every revision therefore reproduces the revised document and rejecting every revision reproduces the original's content. Those two properties are the specification; everything below exists to keep them true.
Comparison is deterministic. No clock is read, no id is generated at random, and no collection whose order could vary reaches the output — the same two documents compared twice with the same options save byte-identically.
Enums
- CompareGranularity
The unit a run-level comparison aligns on.
- MoveDetection
How a paragraph that moved rather than changed is represented in the result.