Class CellWatchCollection
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
表示在“监视窗口”中被监视的此工作表上的单元格集合。
public class CellWatchCollection : CollectionBase<cellwatch>, IList<cellwatch>, ICollection<cellwatch>, IEnumerable<cellwatch>, ICollection, IEnumerable
继承
object ← CollectionBase<cellwatch> ← CellWatchCollection
实现
IList<cellwatch>, ICollection<cellwatch>, IEnumerable<cellwatch>, ICollection, IEnumerable
继承成员
CollectionBase<cellwatch>.BinarySearch(CellWatch), CollectionBase<cellwatch>.BinarySearch(CellWatch, IComparer<cellwatch>), CollectionBase<cellwatch>.BinarySearch(int, int, CellWatch, IComparer<cellwatch>), CollectionBase<cellwatch>.Contains(CellWatch), CollectionBase<cellwatch>.CopyTo(CellWatch[]), CollectionBase<cellwatch>.CopyTo(CellWatch[], int), CollectionBase<cellwatch>.CopyTo(int, CellWatch[], int, int), CollectionBase<cellwatch>.Exists(Predicate<cellwatch>), CollectionBase<cellwatch>.Find(Predicate<cellwatch>), CollectionBase<cellwatch>.FindAll(Predicate<cellwatch>), CollectionBase<cellwatch>.FindIndex(Predicate<cellwatch>), CollectionBase<cellwatch>.FindIndex(int, Predicate<cellwatch>), CollectionBase<cellwatch>.FindIndex(int, int, Predicate<cellwatch>), CollectionBase<cellwatch>.FindLast(Predicate<cellwatch>), CollectionBase<cellwatch>.FindLastIndex(Predicate<cellwatch>), CollectionBase<cellwatch>.FindLastIndex(int, Predicate<cellwatch>), CollectionBase<cellwatch>.FindLastIndex(int, int, Predicate<cellwatch>), CollectionBase<cellwatch>.IndexOf(CellWatch), CollectionBase<cellwatch>.IndexOf(CellWatch, int), CollectionBase<cellwatch>.IndexOf(CellWatch, int, int), CollectionBase<cellwatch>.LastIndexOf(CellWatch), CollectionBase<cellwatch>.LastIndexOf(CellWatch, int), CollectionBase<cellwatch>.LastIndexOf(CellWatch, int, int), CollectionBase<cellwatch>.GetEnumerator(), CollectionBase<cellwatch>.Clear(), CollectionBase<cellwatch>.RemoveAt(int), CollectionBase<cellwatch>.OnClearComplete(), CollectionBase<cellwatch>.OnClear(), CollectionBase<cellwatch>.Capacity, CollectionBase<cellwatch>.Count, CollectionBase<cellwatch>.InnerList, CollectionBase<cellwatch>.this[int], object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
示例
//实例化一个 Workbook 对象
Workbook workbook = new Workbook();
// 获取第一个工作表。
Worksheet sheet = workbook.Worksheets[0];
// 将单元格监视项添加到监视窗口
sheet.CellWatches.Add("B2");
'实例化一个 Workbook 对象
Dim workbook As Workbook = New Workbook()
'获取第一个工作表。
Dim sheet as Worksheet = workbook.Worksheets(0);
'将单元格监视项添加到监视窗口
sheet.CellWatches.Add("B2")
构造函数
CellWatchCollection()
public CellWatchCollection()
属性
this[int]
通过索引获取和设置 Aspose.Cells.CellWatch。
public CellWatch this[int index] { get; }
属性值
this[string]
通过单元格名称获取和设置 Aspose.Cells.CellWatch。
public CellWatch this[string cellName] { get; }
属性值
方法
Add(int, int)
通过行和列添加 Aspose.Cells.CellWatch。
public int Add(int row, int column)
参数
row
int
行索引。
column
int
列索引。
返回
返回此项在集合中的位置。
Add(string)
通过单元格名称添加 Aspose.Cells.CellWatch。
public int Add(string cellName)
参数
cellName
string
单元格的名称。