RevisionGroupCollection
Contents
[
Hide
]RevisionGroupCollection class
A collection of RevisionGroup
objects that represent revision groups in the document.
To learn more, visit the Track Changes in a Document documentation article.
public sealed class RevisionGroupCollection : IEnumerable<RevisionGroup>
Properties
Name | Description |
---|---|
Count { get; } | Returns the number of revision groups in the collection. |
Item { get; } | Returns a revision group at the specified index. |
Methods
Name | Description |
---|---|
GetEnumerator() | Returns an enumerator object. |
Remarks
You do not create instances of this class directly. Use the Groups
property to get revision groups present in a document.
Examples
Shows how to get a group of revisions in a document.
Document doc = new Document(MyDir + "Revisions.docx");
RevisionGroup revisionGroup = doc.Revisions.Groups[0];
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
- class RevisionGroup
- namespace Aspose.Words
- assembly Aspose.Words