PageHistory
概述
PageHistory 是Python的Aspose.Note FOSS中的一个类.
添加指定页面到集合中.
这个类提供了12种方法,用于在Python程序中使用PageHistory 对象. 有的方法包括: Add, AddRange, Clear, Contains, CopyTo, GetEnumerator, IndexOf, Insert, Remove, RemoveAt, RemoveRange, __init__. 在安装Python包的Aspose.Note FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: Count, Current, IsReadOnly.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|---|---|---|
Count | int | 阅读 | 获取计数。. |
Current | Page | 阅读 | 获取当前。. |
IsReadOnly | bool | 阅读 | 获取是否只读。. |
方法
| Signature | 描述情况 |
|---|---|
__init__(current: Page) | |
Add(page: Page) | 将指定页面添加到集合中 |
AddRange(pages: list[Page]) | 将列表中的所有页面添加到历史记录库中 |
Clear() | 从集合中删除所有页面. |
Contains(page: Page) → bool | 如果指定页面在集合中存在,则返回true |
CopyTo(target: list[Page], index: int) | 将页面复制到目标列表中,从给定的索引开始. |
GetEnumerator() → Iterator[Page] | 返回集合中的页面的代器 |
IndexOf(page: Page) → int | 返回指定页面的基于零的索引,如果没有找到的话则为 -1 |
Insert(index: int, page: Page) | 在集合中指定索引中插入页面 |
Remove(page: Page) → bool | 删除页面的第一次出现,如果成功返回true |
RemoveAt(index: int) | 删除给定零基础索引的页面 |
RemoveRange(index: int, count: int) | 删除数项的索引开始页面范围 |