PageHistory
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericList
public class PageHistory implements System.Collections.Generic.IGenericList<Page>
表示页面历史。
构造函数
| 构造函数 | 描述 |
|---|---|
| PageHistory(Page page) | 初始化 PageHistory 类的新实例。 |
方法
| 方法 | 描述 |
|---|---|
| addItem(Page item) | 将页面版本添加到 PageHistory 的末尾。 |
| addRange(System.Collections.Generic.IGenericEnumerable<Page> items) | 将页面版本添加到 PageHistory 的末尾。 |
| clear() | 清除页面历史记录。 |
| containsItem(Page item) | 确定页面历史记录是否包含该页面版本。 |
| copyToTArray(Page[] array, int arrayIndex) | 将页面版本复制到数组中,从特定索引开始。 |
| getCurrent() | 获取当前页面版本。 |
| get_Item(int index) | 获取或设置 PageHistory 中指定索引的页面版本。 |
| indexOfItem(Page item) | 确定页面历史中特定页面版本的索引。 |
| insertItem(int index, Page item) | 在页面历史中插入页面版本。 |
| isReadOnly() | 获取一个值,指示页面历史是否为只读。 |
| iterator() | 返回一个枚举器,用于遍历 PageHistory 的子节点。 |
| removeAt(int index) | 移除 PageHistory 中指定索引的页面版本。 |
| removeItem(Page item) | 从 PageHistory 中移除页面版本。 |
| removeRange(int index, int count) | 从 PageHistory 中移除一系列页面版本。 |
| set_Item(int index, Page value) | 获取或设置 PageHistory 中指定索引的页面版本。 |
| size() | 获取页面历史中页面版本的计数。 |
PageHistory(Page page)
public PageHistory(Page page)
初始化 PageHistory 类的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| page | Page | 当前页面版本。 |
addItem(Page item)
public void addItem(Page item)
将页面版本添加到 PageHistory 的末尾。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| item | Page | 页面版本。 |
addRange(System.Collections.Generic.IGenericEnumerable<Page> items)
public void addRange(System.Collections.Generic.IGenericEnumerable<Page> items)
将页面版本添加到 PageHistory 的末尾。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 项 | com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.note.Page> | 页面版本的 IEnumerable\\{Page\\} 集合。 |
clear()
public void clear()
清除页面历史记录。
containsItem(Page item)
public boolean containsItem(Page item)
确定页面历史记录是否包含该页面版本。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| item | Page | 页面版本。 |
Returns:
boolean - 该 bool。
copyToTArray(Page[] array, int arrayIndex)
public void copyToTArray(Page[] array, int arrayIndex)
将页面版本复制到数组中,从特定索引开始。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| array | Page[] | 目标数组。 |
| arrayIndex | int | 数组索引。 |
getCurrent()
public Page getCurrent()
获取当前页面版本。
Returns: Page
get_Item(int index)
public Page get_Item(int index)
获取或设置 PageHistory 中指定索引的页面版本。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| index | int | 索引。 |
Returns: Page - The page version.
indexOfItem(Page item)
public int indexOfItem(Page item)
确定页面历史中特定页面版本的索引。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| item | Page | 页面版本。 |
Returns:
int - 该 int。
insertItem(int index, Page item)
public void insertItem(int index, Page item)
在页面历史中插入页面版本。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| index | int | 索引。 |
| item | Page | 页面版本。 |
isReadOnly()
public boolean isReadOnly()
获取一个值,指示页面历史是否为只读。
Returns: boolean
iterator()
public System.Collections.Generic.IGenericEnumerator<Page> iterator()
返回一个枚举器,用于遍历 PageHistory 的子节点。
Returns:
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.note.Page> - 该 IEnumerator。
removeAt(int index)
public void removeAt(int index)
移除 PageHistory 中指定索引的页面版本。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| index | int | 索引。 |
removeItem(Page item)
public boolean removeItem(Page item)
从 PageHistory 中移除页面版本。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| item | Page | 页面版本。 |
Returns:
boolean - 该 bool。
removeRange(int index, int count)
public void removeRange(int index, int count)
从 PageHistory 中移除一系列页面版本。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| index | int | 索引。 |
| count | int | 计数。 |
set_Item(int index, Page value)
public void set_Item(int index, Page value)
获取或设置 PageHistory 中指定索引的页面版本。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| index | int | 索引。 |
| value | Page |
size()
public int size()
获取页面历史中页面版本的计数。
Returns: int