public void AcceptAllRevisions()
{
//ExStart
//ExFor:Document.AcceptAllRevisions
//ExSummary:Shows how to accept all tracking changes in the document.
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(MyDir + @"\Artifacts\Document.AcceptedRevisions.doc");
//ExEnd
}