Table of Contents

Method GetRevisions

Namespace
DocWright.Dom.Revisions
Assembly
DocWright.Dom.dll

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

node DomNode

The subtree root — a whole WordDocument or any part of one.

Returns

IReadOnlyList<Revision>

The revisions, in document order.

Exceptions

ArgumentNullException

node is null.