PageHistory
Vue de l’ensemble
‘PageHistory’ est une classe dans Aspose.Note FOSS pour Python.
PageHistory.Add ajoute la page spécifiée à la collection.
Cette classe fournit 12 méthodes pour travailler avec des objets PageHistory dans les programmes Python. Les méthodologies disponibles comprennent: ‘Add’, ‘AdRange’, Clear', ‘Contains’, 'CopyTo', ’GetEnumerator', ‚IndexOf',‘Insert, ‘Remove , ' RemoverAt et ‘init’. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de l’Aspose.Note FOSS pour le package Pyathon. Propriétés : ‘Count ; 'Actuel; ‘IsReadOnly’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the count. |
Current | Page | Read | Gets the current. |
IsReadOnly | bool | Read | Gets the is read only. |
méthodes
| 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 |
Voir aussi
- Aspose.Note — référence API d’entreprise