com.aspose.words
Class RevisionCollection

java.lang.Object
    extended by com.aspose.words.RevisionCollection
All Implemented Interfaces:
java.lang.Iterable

public class RevisionCollection 
extends java.lang.Object

A collection of Revision objects that represent revisions in the document.

You do not create instances of this class directly. Use the Document.Revisions property to get revisions present in a document.


Property Getters/Setters Summary
intgetCount()
           Returns the number of revisions in the collection.
RevisionGroupCollectiongetGroups()
           Collection of revision groups.
Revisionget(int index)
           Returns a Revision at the specified index.
 
Method Summary
voidacceptAll()
           Accepts all revisions in this collection.
voidrejectAll()
           Rejects all revisions in this collection.
 

Property Getters/Setters Detail

getCount

public int getCount()
Returns the number of revisions in the collection.

getGroups

public RevisionGroupCollection getGroups()
Collection of revision groups.

get

public Revision get(int index)
Returns a Revision at the specified index.

The index is zero-based.

Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.

If index is greater than or equal to the number of items in the list, this returns a null reference.

If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.

Parameters:
index - An index into the collection.

Method Detail

acceptAll

public void acceptAll()
              throws java.lang.Exception
Accepts all revisions in this collection.

rejectAll

public void rejectAll()
              throws java.lang.Exception
Rejects all revisions in this collection.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.