Count

RevisionGroupCollection.Count property

Returns the number of revision groups in the collection.

public int Count { get; }

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