CommentCollection类
CommentCollection类
封装 Comment 对象的集合。
CommentCollection 类型公开了以下成员:
特性
| 属性 | 描述 |
|---|---|
| capacity | 获取或设置数组列表可以包含的元素数。 |
方法
| 方法 | 描述 |
|---|---|
| add_threaded_comment(row, column, text, author) | 添加线程评论。 |
| add_threaded_comment(cell_name, text, author) | 添加线程评论。 |
| get_threaded_comments(row, column) | 按行和列索引获取线程评论。 |
| get_threaded_comments(cell_name) | 按单元格名称获取线程注释。 |
| add(row, column) | 向集合添加评论。 |
| add(cell_name) | 向集合添加评论。 |
| remove_at(cell_name) | 删除特定单元格的注释。 |
| remove_at(row, column) | 删除特定单元格的注释。 |
| copy_to(array) | 将整个数组列表复制到兼容的一维数组列表,从目标数组列表的开头开始。 |
| copy_to(index, array, array_index, count) | 将数组列表中的一系列元素复制到兼容的一维数组列表,从目标数组列表的指定索引开始。 |
| index_of(item, index) | 搜索指定的对象并返回数组列表中从指定索引延伸到最后一个元素的元素范围内第一次出现的从零开始的索引。 |
| index_of(item, index, count) | 搜索指定的对象并返回数组列表中从指定索引开始并包含指定数量的元素的元素范围内第一次出现的从零开始的索引。 |
| last_index_of(item) | 搜索指定的对象并返回整个数组列表中最后一次出现的从零开始的索引。 |
| last_index_of(item, index) | 搜索指定的对象并返回数组列表中从第一个元素到指定索引的元素范围内最后一次出现的从零开始的索引。 |
| last_index_of(item, index, count) | 搜索指定的对象并返回数组列表中包含指定数量的元素并以指定索引结束的元素范围内最后一次出现的从零开始的索引。 |
| binary_search(item) | 使用默认比较器在整个排序数组列表中搜索元素,并返回元素的从零开始的索引。 |
例子
from aspose.cells import Workbook
workbook = Workbook()
comments = workbook.worksheets[0].comments
也可以看看
- 模块 aspose.cells
- 类 Comment