RevisionGroupCollectionCount Property

Returns the number of revision groups in the collection.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public int Count { get; }

Property Value

Type: Int32
Examples
Shows how to get info about a set of revisions in document.
Document doc = new Document(MyDir + "Revisions.docx");

Console.WriteLine("Revision groups count: {0}\n", doc.Revisions.Groups.Count);

// Get info about all of revisions in document
foreach (RevisionGroup group in doc.Revisions.Groups)
{
    Console.WriteLine("Revision author: {0}; Revision type: {1} \nRevision text: {2}", group.Author,
        group.RevisionType, group.RevisionType);
}
See Also