Get Started
Documentation

SetTrackRevisions

SetTrackRevisions(isTrack)

Set to track changes or not

Parameters:

Name Type Description
isTrack boolean

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
oDocument.SetTrackRevisions(true);
oParagraph.AddText("Track revisions mode was set.");
builder.SaveFile("docx", "SetTrackRevisions.docx");
builder.CloseFile();

Resulting document