Method GetRevisions
GetRevisions(DomNode)
Collects every tracked change in a subtree, in document order.
Contiguous run content sharing one w:ins or w:del is reported as a
single revision spanning all of it, which is both what Word displays and how
the writer groups the markup on the way out. Formatting changes are per run, because
each run carries its own w:rPrChange.
The enumeration is stable: the same tree yields the same handles in the same order on every call.
public static IReadOnlyList<Revision> GetRevisions(this DomNode node)
Parameters
nodeDomNodeThe subtree root — a whole WordDocument or any part of one.
Returns
- IReadOnlyList<Revision>
The revisions, in document order.
Exceptions
- ArgumentNullException
nodeis null.