DocumentAcceptAllRevisions Method

Accepts all tracked changes in the document.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void AcceptAllRevisions()
Remarks
Examples
Shows how to accept all tracking changes in the document.
Document doc = new Document(MyDir + "Document.docx");

// 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.AcceptAllRevisions.doc");
See Also