java.lang.Object
com.aspose.words.RevisionType
public class RevisionType
- extends java.lang.Object
Utility class containing constants.
Specifies the type of change being tracked in Revision.
Example:
Shows how to get a set of revisions in document.
Document doc = new Document(getMyDir() + "Document.Revisions.docx");
// Get revision group by index.
RevisionGroup revisionGroup = doc.getRevisions().getGroups().get(1);
// Get info about specific revision groups sorted by RevisionType
for (RevisionGroup revision : doc.getRevisions().getGroups()) {
if (revision.getRevisionType() == RevisionType.INSERTION) {
System.out.println(MessageFormat.format("Revision type: {0},\nRevision author: {1},\nRevision text: {2}.\n",
revision.getRevisionType(), revision.getAuthor(), revision.getText()));
}
}
Field Summary |
static final int | INSERTION = 0 | |
New content was inserted in the document.
|
static final int | DELETION = 1 | |
Content was removed from the document.
|
static final int | FORMAT_CHANGE = 2 | |
Change of formatting was applied to the parent node.
|
static final int | STYLE_DEFINITION_CHANGE = 3 | |
Change of formatting was applied to the parent style.
|
static final int | MOVING = 4 | |
Content was moved in the document.
|
INSERTION = 0 | |
public static final int INSERTION |
-
New content was inserted in the document.
DELETION = 1 | |
public static final int DELETION |
-
Content was removed from the document.
FORMAT_CHANGE = 2 | |
public static final int FORMAT_CHANGE |
-
Change of formatting was applied to the parent node.
STYLE_DEFINITION_CHANGE = 3 | |
public static final int STYLE_DEFINITION_CHANGE |
-
Change of formatting was applied to the parent style.
MOVING = 4 | |
public static final int MOVING |
-
Content was moved in the document.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.