CellWatchCollection类
CellWatchCollection类
表示在“监视窗口”中监视的此工作表上的单元格集合。
CellWatchCollection 类型公开以下成员:
构造函数
属性
方法
方法 | 描述 |
---|
add(self, row, column) | 将 CellWatch 与行和列相加。 |
add(self, cell_name) | 添加单元格名称为 CellWatch 。 |
copy_to(self, array) | 将整个数组列表复制到兼容的一维数组列表,从目标数组列表的开头开始。 |
copy_to(self, index, array, array_index, count) | 从目标数组列表的指定索引开始,将数组列表中的一系列元素复制到兼容的一维数组列表中。 |
index_of(self, item, index) | 搜索指定的对象并返回从指定索引延伸到最后一个元素的数组列表中元素范围内第一个出现的从零开始的索引。 |
index_of(self, item, index, count) | 搜索指定的对象并返回从指定索引开始并包含指定数量元素的数组列表中元素范围内第一次出现的从零开始的索引。 |
last_index_of(self, item) | 搜索指定的对象并返回整个数组列表中最后一次出现的从零开始的索引。 |
last_index_of(self, item, index) | 搜索指定的对象并返回从第一个元素延伸到指定索引的数组列表中元素范围内的最后一个出现的从零开始的索引。 |
last_index_of(self, item, index, count) | 搜索指定的对象并返回包含指定数量的元素并以指定索引结束的数组列表中元素范围内的最后一个出现的从零开始的索引。 |
get(self, cell_name) | 通过单元格名称获取并设置 CellWatch 。 |
binary_search(self, item) | 使用默认比较器在整个排序数组列表中搜索元素,并返回该元素从零开始的索引。 |
例子
from aspose.cells import Workbook
# Instantiating a Workbook object
workbook = Workbook()
# Get the first Worksheet.
sheet = workbook.worksheets[0]
# Add Cell Watch Item into the watch window
sheet.cell_watches.add("B2")
也可以看看