RevisionGroup

RevisionGroup class

Represents a group of sequential Revision objects.

To learn more, visit the Track Changes in a Document documentation article.

public class RevisionGroup

Properties

NameDescription
Author { get; }Gets the author of this revision group.
RevisionType { get; }Gets the type of revisions included in this group.
Text { get; }Returns inserted/deleted/moved text or description of format change.

Examples

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

Document doc = new Document(MyDir + "Revisions.docx");

Assert.AreEqual(7, doc.Revisions.Groups.Count);

foreach (RevisionGroup group in doc.Revisions.Groups)
{
    Console.WriteLine(
        $"Revision author: {group.Author}; Revision type: {group.RevisionType} \n\tRevision text: {group.Text}");
}

See Also