PageHistory
Overview
PageHistory is a class in Aspose.Note FOSS for Python.
PageHistory.Add adds the specified Page to the collection.
This class provides 12 methods for working with PageHistory objects in Go programs.
Available methods include: Add, AddRange, Clear, Contains, CopyTo, GetEnumerator, IndexOf, Insert, Remove, RemoveAt, RemoveRange, __init__.
All exported members are accessible to any Go application after adding the package via go get github.com/aspose-pdf-foss/aspose-pdf-foss-for-go.
Properties: Count, Current, IsReadOnly.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the count. |
Current | Page | Read | Gets the current. |
IsReadOnly | bool | Read | Gets the is read only. |
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 history 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 pages into 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 a Page at the specified index in the collection |
Remove(page: Page) → bool | Deletes the first occurrence of the Page and returns true if successful |
RemoveAt(index: int) | Removes the Page at the given zero‑based index |
RemoveRange(index: int, count: int) | Removes a range of pages starting at index for count items |