PageHistory
Overview
PageHistory is a class in Aspose.Note for Python.
PageHistory.Add adds the specified Page to the collection.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of Pages in the collection |
Current | Page | Read | Gets the current Page in the enumeration or context |
IsReadOnly | bool | Read | Indicates whether the collection cannot be modified |
Methods
| Signature | Description |
|---|---|
__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) → bool | Returns 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) → int | Returns 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) → bool | Removes 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 |