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
Имя ячейки.