CellWatchCollection
CellWatchCollection class
表示在“监视窗口”中正在监视的此工作表上的单元格集合。
public class CellWatchCollection : CollectionBase<CellWatch>
构造函数
特性
方法
姓名 | 描述 |
---|
Add(string) | 添加 |
Add(int, int) | 添加CellWatch 有行和列。 |
BinarySearch(CellWatch) | |
BinarySearch(CellWatch, IComparer<CellWatch>) | |
BinarySearch(int, int, CellWatch, IComparer<CellWatch>) | |
Clear() | |
Contains(CellWatch) | |
CopyTo(CellWatch[]) | |
CopyTo(CellWatch[], int) | |
CopyTo(int, CellWatch[], int, int) | |
Exists(Predicate<CellWatch>) | |
Find(Predicate<CellWatch>) | |
FindAll(Predicate<CellWatch>) | |
FindIndex(Predicate<CellWatch>) | |
FindIndex(int, Predicate<CellWatch>) | |
FindIndex(int, int, Predicate<CellWatch>) | |
FindLast(Predicate<CellWatch>) | |
FindLastIndex(Predicate<CellWatch>) | |
FindLastIndex(int, Predicate<CellWatch>) | |
FindLastIndex(int, int, Predicate<CellWatch>) | |
GetEnumerator() | |
IndexOf(CellWatch) | |
IndexOf(CellWatch, int) | |
IndexOf(CellWatch, int, int) | |
LastIndexOf(CellWatch) | |
LastIndexOf(CellWatch, int) | |
LastIndexOf(CellWatch, int, int) | |
RemoveAt(int) | |
例子
[C#]
//实例化一个工作簿对象
Workbook workbook = new Workbook();
// 获取第一个工作表。
Worksheet sheet = workbook.Worksheets[0];
// 将 Cell Watch Item 添加到监视窗口
sheet.CellWatches.Add("B2");
[Visual Basic]
'实例化工作簿对象
Dim workbook As Workbook = New Workbook()
'获取第一个工作表。
Dim sheet as Worksheet = workbook.Worksheets(0);
'将单元格监视项添加到监视窗口
sheet.CellWatches.Add("B2")
也可以看看