Class RevisionExtensions
Enumerating and resolving tracked changes over any subtree of the document model.
Revisions are stored by the reader and never applied at parse time — that is what makes the round trip lossless. Accepting or rejecting is an explicit caller action, and these methods are the only ones that perform it.
The resolution rules are the exact inverse of the projection
StyleResolver performs for RevisionView: what
accept-all leaves behind is what Final shows, and what reject-all leaves behind is
what Original shows. Those two must never drift apart.
public static class RevisionExtensions
- Inheritance
-
RevisionExtensions
- Inherited Members
Methods
- AcceptAllRevisions(DomNode)
Accepts every tracked change in a subtree: insertions lose their annotations and stay, deleted content is removed, a deleted paragraph mark merges its paragraph into the following one, and formatting changes keep the current formatting.
- AcceptRevisions(DomNode, RevisionFilter)
Accepts the tracked changes a filter selects, leaving the rest in place.
- GetRevisions(DomNode)
Collects every tracked change in a subtree, in document order.
Contiguous run content sharing one
w:insorw:delis 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 ownw:rPrChange.The enumeration is stable: the same tree yields the same handles in the same order on every call.
- RejectAllRevisions(DomNode)
Rejects every tracked change in a subtree: inserted content is removed, an inserted paragraph mark merges its paragraph into the following one, deletions lose their annotations and stay, and formatting changes restore the recorded previous formatting.
- RejectRevisions(DomNode, RevisionFilter)
Rejects the tracked changes a filter selects, leaving the rest in place.