Get Started
Usage API
More information

IsTrackRevisions

IsTrackRevisions() → { boolean }

Check if change tracking mode is enabled or not.

Parameters:

This method doesn't have any parameters.

Returns:

Type
boolean

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oParagraph = oDocument.GetElement(0);
oDocument.SetTrackRevisions(true);
oTrackRevisions = oDocument.IsTrackRevisions();
oParagraph.AddText("Change tracking is enabled: " + oTrackRevisions);
builder.SaveFile("docx", "IsTrackRevisions.docx");
builder.CloseFile();

Resulting document