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

NameTypeAccessDescription
CountintReadGets the count.
CurrentPageReadGets the current.
IsReadOnlyboolReadGets the is read only.

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 history 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 pages into 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 a Page at the specified index in the collection
Remove(page: Page)boolDeletes 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

See Also