RevisionGroup class

RevisionGroup class

Represents a group of sequential Revision objects. To learn more, visit the Track Changes in a Document documentation article.

Properties

NameDescription
authorGets the author of this revision group.
revisionTypeGets the type of revisions included in this group.
textReturns inserted/deleted/moved text or description of format change.

Examples

Shows how to print info about a group of revisions in a document.

let doc = new aw.Document(base.myDir + "Revisions.docx");

expect(doc.revisions.groups.count).toEqual(7);

for (let group of doc.revisions.groups)
{
  console.log(
    `Revision author: ${group.author}; Revision type: ${group.revisionType} \n\tRevision text: ${group.text}`);
}

See Also