PageHistory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericList

public class PageHistory implements System.Collections.Generic.IGenericList<Page>

Represents the page history.

Constructors

ConstructorDescription
PageHistory(Page page)Initializes a new instance of the PageHistory class.

Methods

MethodDescription
addItem(Page item)Adds the page version to the end of the PageHistory.
addRange(System.Collections.Generic.IGenericEnumerable<Page> items)Adds the page versions to the end of the PageHistory.
clear()Clears the page history.
containsItem(Page item)Determines whether the page history contains the page version.
copyToTArray(Page[] array, int arrayIndex)Copies the page versions to an array, starting at a particular index..
getCurrent()Gets the current page version.
get_Item(int index)Gets or sets the page version at the specified index of the PageHistory.
indexOfItem(Page item)Determines the index of a specific page version in the page history.
insertItem(int index, Page item)Inserts a page version into the page history.
isReadOnly()Gets a value indicating whether the page history is read only.
iterator()Returns an enumerator that iterates through child nodes of the PageHistory.
removeAt(int index)Removes the page version at the specified index of the PageHistory.
removeItem(Page item)Removes the page version from the PageHistory.
removeRange(int index, int count)Removes a range of the page versions from the PageHistory.
set_Item(int index, Page value)Gets or sets the page version at the specified index of the PageHistory.
size()Gets the count of the page versions in the page history.

PageHistory(Page page)

public PageHistory(Page page)

Initializes a new instance of the PageHistory class.

Parameters:

ParameterTypeDescription
pagePageThe current page version.

addItem(Page item)

public void addItem(Page item)

Adds the page version to the end of the PageHistory.

Parameters:

ParameterTypeDescription
itemPageThe page version.

addRange(System.Collections.Generic.IGenericEnumerable<Page> items)

public void addRange(System.Collections.Generic.IGenericEnumerable<Page> items)

Adds the page versions to the end of the PageHistory.

Parameters:

ParameterTypeDescription
itemscom.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.note.Page>The IEnumerable\{Page\} collection of page versions.

clear()

public void clear()

Clears the page history.

containsItem(Page item)

public boolean containsItem(Page item)

Determines whether the page history contains the page version.

Parameters:

ParameterTypeDescription
itemPageThe page version.

Returns: boolean - The bool.

copyToTArray(Page[] array, int arrayIndex)

public void copyToTArray(Page[] array, int arrayIndex)

Copies the page versions to an array, starting at a particular index..

Parameters:

ParameterTypeDescription
arrayPage[]The target array.
arrayIndexintThe array index.

getCurrent()

public Page getCurrent()

Gets the current page version.

Returns: Page

get_Item(int index)

public Page get_Item(int index)

Gets or sets the page version at the specified index of the PageHistory.

Parameters:

ParameterTypeDescription
indexintThe index.

Returns: Page - The page version.

indexOfItem(Page item)

public int indexOfItem(Page item)

Determines the index of a specific page version in the page history.

Parameters:

ParameterTypeDescription
itemPageThe page version.

Returns: int - The int.

insertItem(int index, Page item)

public void insertItem(int index, Page item)

Inserts a page version into the page history.

Parameters:

ParameterTypeDescription
indexintThe index.
itemPageThe page version.

isReadOnly()

public boolean isReadOnly()

Gets a value indicating whether the page history is read only.

Returns: boolean

iterator()

public System.Collections.Generic.IGenericEnumerator<Page> iterator()

Returns an enumerator that iterates through child nodes of the PageHistory.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.note.Page> - The IEnumerator.

removeAt(int index)

public void removeAt(int index)

Removes the page version at the specified index of the PageHistory.

Parameters:

ParameterTypeDescription
indexintThe index.

removeItem(Page item)

public boolean removeItem(Page item)

Removes the page version from the PageHistory.

Parameters:

ParameterTypeDescription
itemPageThe page version.

Returns: boolean - The bool.

removeRange(int index, int count)

public void removeRange(int index, int count)

Removes a range of the page versions from the PageHistory.

Parameters:

ParameterTypeDescription
indexintThe index.
countintThe count.

set_Item(int index, Page value)

public void set_Item(int index, Page value)

Gets or sets the page version at the specified index of the PageHistory.

Parameters:

ParameterTypeDescription
indexintThe index.
valuePage

size()

public int size()

Gets the count of the page versions in the page history.

Returns: int