PageHistory

Overview

PageHistory is a class in Aspose.Note for Python.

PageHistory.Add adds the specified Page to the collection.

Properties

NameTypeAccessDescription
CountintReadGets the number of Pages in the collection
CurrentPageReadGets the current Page in the enumeration or context
IsReadOnlyboolReadIndicates whether the collection cannot be modified

Methods

SignatureDescription
__init__(current: Page)
Add(page: Page)Adds the specified Page to the collection
AddRange(pages: list[Page])Adds all Pages from the list to the collection
Clear()Removes all Pages from the collection
Contains(page: Page)boolReturns True if the specified Page exists in the collection
CopyTo(target: list[Page], index: int)Copies the collection into the target list starting at the given index
GetEnumerator()Iterator[Page]Returns an iterator over the Pages in the collection
IndexOf(page: Page)intReturns the zero‑based index of the specified Page, or -1 if not found
Insert(index: int, page: Page)Inserts the Page at the given index in the collection
Remove(page: Page)boolRemoves the first occurrence of the specified Page and returns success
RemoveAt(index: int)Removes the Page at the specified index
RemoveRange(index: int, count: int)Removes a range of Pages starting at index for count items