public class PageHistory extends Object implements com.aspose.ms.System.Collections.Generic.IGenericList<Page>
Represents the page history.
| Constructor and Description |
|---|
PageHistory(Page page)
Initializes a new instance of the
PageHistory class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(Page item)
Adds the page version to the end of the
PageHistory. |
void |
addRange(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Page> items)
Adds the page versions to the end of the
PageHistory. |
void |
clear()
Clears the page history.
|
boolean |
containsItem(Page item)
Determines whether the page history contains the page version.
|
void |
copyToTArray(Page[] array,
int arrayIndex)
Copies the page versions to an array, starting at a particular index..
|
Page |
get_Item(int index)
Gets or sets the page version at the specified index of the
PageHistory. |
Page |
getCurrent()
Gets the current page version.
|
int |
indexOfItem(Page item)
Determines the index of a specific page version in the page history.
|
void |
insertItem(int index,
Page item)
Inserts a page version into the page history.
|
boolean |
isReadOnly()
Gets a value indicating whether the page history is read only.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Page> |
iterator()
Returns an enumerator that iterates through child nodes of the
PageHistory. |
void |
removeAt(int index)
Removes the page version at the specified index of the
PageHistory. |
boolean |
removeItem(Page item)
Removes the page version from the
PageHistory. |
void |
removeRange(int index,
int count)
Removes a range of the page versions from the
PageHistory. |
void |
set_Item(int index,
Page value)
Gets or sets the page version at the specified index of the
PageHistory. |
int |
size()
Gets the count of the page versions in the page history.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic PageHistory(Page page)
Initializes a new instance of the PageHistory class.
page - The current page version.public Page getCurrent()
Gets the current page version.
public int size()
Gets the count of the page versions in the page history.
size in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>public boolean isReadOnly()
Gets a value indicating whether the page history is read only.
isReadOnly in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>public Page get_Item(int index)
Gets or sets the page version at the specified index of the PageHistory.
get_Item in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>index - The index.public void set_Item(int index,
Page value)
Gets or sets the page version at the specified index of the PageHistory.
set_Item in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>index - The index.public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Page> iterator()
Returns an enumerator that iterates through child nodes of the PageHistory.
public boolean containsItem(Page item)
Determines whether the page history contains the page version.
containsItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>item - The page version.bool.public int indexOfItem(Page item)
Determines the index of a specific page version in the page history.
indexOfItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>item - The page version.int.public void addItem(Page item)
Adds the page version to the end of the PageHistory.
addItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>item - The page version.public void addRange(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Page> items)
Adds the page versions to the end of the PageHistory.
items - The IEnumerable{Page} collection of page versions.public void insertItem(int index,
Page item)
Inserts a page version into the page history.
insertItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>index - The index.item - The page version.public boolean removeItem(Page item)
Removes the page version from the PageHistory.
removeItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>item - The page version.bool.public void removeAt(int index)
Removes the page version at the specified index of the PageHistory.
removeAt in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>index - The index.public void removeRange(int index,
int count)
Removes a range of the page versions from the PageHistory.
index - The index.count - The count.public void clear()
Clears the page history.
clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>public void copyToTArray(Page[] array, int arrayIndex)
Copies the page versions to an array, starting at a particular index..
copyToTArray in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>array - The target array.arrayIndex - The array index.Copyright (c) 2002-2021 Aspose. All Rights Reserved.