com.aspose.note

Class PageHistory

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Page>, com.aspose.ms.System.Collections.Generic.IGenericList<Page>, com.aspose.ms.System.Collections.IEnumerable<Page>, Iterable<Page>


    public class PageHistory
    extends Object
    implements com.aspose.ms.System.Collections.Generic.IGenericList<Page>

    Represents the page history.

    • Constructor Summary

      Constructors 
      Constructor and Description
      PageHistory(Page page)
      Initializes a new instance of the PageHistory class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
    • Constructor Detail

      • PageHistory

        public PageHistory(Page page)

        Initializes a new instance of the PageHistory class.

        Parameters:
        page - The current page version.
    • Method Detail

      • getCurrent

        public Page getCurrent()

        Gets the current page version.

      • size

        public int size()

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

        Specified by:
        size in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>
      • isReadOnly

        public boolean isReadOnly()

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

        Specified by:
        isReadOnly in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>
      • get_Item

        public Page get_Item(int index)

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

        Specified by:
        get_Item in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>
        Parameters:
        index - The index.
        Returns:
        The page version.
      • set_Item

        public void set_Item(int index,
                             Page value)

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

        Specified by:
        set_Item in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>
        Parameters:
        index - The index.
      • iterator

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

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

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Page>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<Page>
        Specified by:
        iterator in interface Iterable<Page>
        Returns:
        The IEnumerator.
      • containsItem

        public boolean containsItem(Page item)

        Determines whether the page history contains the page version.

        Specified by:
        containsItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>
        Parameters:
        item - The page version.
        Returns:
        The bool.
      • indexOfItem

        public int indexOfItem(Page item)

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

        Specified by:
        indexOfItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>
        Parameters:
        item - The page version.
        Returns:
        The int.
      • addItem

        public void addItem(Page item)

        Adds the page version to the end of the PageHistory.

        Specified by:
        addItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>
        Parameters:
        item - The page version.
      • addRange

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

        Adds the page versions to the end of the PageHistory.

        Parameters:
        items - The IEnumerable{Page} collection of page versions.
      • insertItem

        public void insertItem(int index,
                               Page item)

        Inserts a page version into the page history.

        Specified by:
        insertItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>
        Parameters:
        index - The index.
        item - The page version.
      • removeItem

        public boolean removeItem(Page item)

        Removes the page version from the PageHistory.

        Specified by:
        removeItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>
        Parameters:
        item - The page version.
        Returns:
        The bool.
      • removeAt

        public void removeAt(int index)

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

        Specified by:
        removeAt in interface com.aspose.ms.System.Collections.Generic.IGenericList<Page>
        Parameters:
        index - The index.
      • removeRange

        public void removeRange(int index,
                                int count)

        Removes a range of the page versions from the PageHistory.

        Parameters:
        index - The index.
        count - The count.
      • clear

        public void clear()

        Clears the page history.

        Specified by:
        clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>
      • copyToTArray

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

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

        Specified by:
        copyToTArray in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<Page>
        Parameters:
        array - The target array.
        arrayIndex - The array index.