java.lang.Object
com.aspose.words.RevisionGroup
public class RevisionGroup
To learn more, visit the Track Changes in a Document documentation article. Example:
Document doc = new Document(getMyDir() + "Revisions.docx");
Assert.assertEquals(7, doc.getRevisions().getGroups().getCount());
for (RevisionGroup group : doc.getRevisions().getGroups()) {
System.out.println(MessageFormat.format("Revision author: {0}; Revision type: {1} \n\tRevision text: {2}", group.getAuthor(), group.getRevisionType(), group.getText()));
}
| Property Getters/Setters Summary | ||
|---|---|---|
java.lang.String | getAuthor() | |
| Gets the author of this revision group. | ||
int | getRevisionType() | |
| Gets the type of revisions included in this group. The value of the property is RevisionType integer constant. | ||
java.lang.String | getText() | |
| Returns inserted/deleted/moved text or description of format change. | ||
| Property Getters/Setters Detail |
|---|
getAuthor | |
public java.lang.String getAuthor() | |
Example:
Shows how to print info about a group of revisions in a document.
Document doc = new Document(getMyDir() + "Revisions.docx");
Assert.assertEquals(7, doc.getRevisions().getGroups().getCount());
for (RevisionGroup group : doc.getRevisions().getGroups()) {
System.out.println(MessageFormat.format("Revision author: {0}; Revision type: {1} \n\tRevision text: {2}", group.getAuthor(), group.getRevisionType(), group.getText()));
}getRevisionType | |
public int getRevisionType() | |
Example:
Shows how to print info about a group of revisions in a document.
Document doc = new Document(getMyDir() + "Revisions.docx");
Assert.assertEquals(7, doc.getRevisions().getGroups().getCount());
for (RevisionGroup group : doc.getRevisions().getGroups()) {
System.out.println(MessageFormat.format("Revision author: {0}; Revision type: {1} \n\tRevision text: {2}", group.getAuthor(), group.getRevisionType(), group.getText()));
}getText | |
public java.lang.String getText() | |
Example:
Shows how to print info about a group of revisions in a document.
Document doc = new Document(getMyDir() + "Revisions.docx");
Assert.assertEquals(7, doc.getRevisions().getGroups().getCount());
for (RevisionGroup group : doc.getRevisions().getGroups()) {
System.out.println(MessageFormat.format("Revision author: {0}; Revision type: {1} \n\tRevision text: {2}", group.getAuthor(), group.getRevisionType(), group.getText()));
}