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

PageHistory(Page page)

public PageHistory(Page page)

Initializes a new instance of the PageHistory class.

Parameters:

ParameterTypeDescription
pagePageThe current page version.

getCurrent()

public Page getCurrent()

Gets the current page version.

Returns: Page

size()

public int size()

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

Returns: int

isReadOnly()

public boolean isReadOnly()

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

Returns: boolean

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.

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

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 .

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 .

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 .

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 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.

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.

removeItem(Page item)

public boolean removeItem(Page item)

Removes the page version from the PageHistory .

Parameters:

ParameterTypeDescription
itemPageThe page version.

Returns: boolean - The bool .

removeAt(int index)

public void removeAt(int index)

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

Parameters:

ParameterTypeDescription
indexintThe index.

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.

clear()

public void clear()

Clears the page history.

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.