DocumentAcceptAllRevisions Method
Accepts all tracked changes in the document.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public void AcceptAllRevisions()
Remarks
Examples
Shows how to accept all tracking changes in the document.
[C#]

Document doc = new Document(MyDir + "Document.doc");

// Start tracking and make some revisions.
doc.StartTrackRevisions("Author");
doc.FirstSection.Body.AppendParagraph("Hello world!");

// Revisions will now show up as normal text in the output document.
doc.AcceptAllRevisions();
doc.Save(ArtifactsDir + "Document.AcceptedRevisions.doc");
See Also