Class 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.
public sealed class DocumentComparer
- Inheritance
-
DocumentComparer
- Inherited Members
Constructors
Methods
- Compare(WordDocument, WordDocument)
Compares two documents with the default options.
- Compare(WordDocument, WordDocument, CompareOptions)
Compares two documents.