Class CellWatchCollection
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
Represents the collection of cells on this worksheet being watched in the ‘watch window’.
public class CellWatchCollection : CollectionBase<cellwatch>, IList<cellwatch>, ICollection<cellwatch>, IEnumerable<cellwatch>, ICollection, IEnumerable
Inheritance
object ← CollectionBase<cellwatch> ← CellWatchCollection
Implements
IList<cellwatch>, ICollection<cellwatch>, IEnumerable<cellwatch>, ICollection, IEnumerable
Inherited Members
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()
Examples
//Instantiating a Workbook object
Workbook workbook = new Workbook();
// Get the first Worksheet.
Worksheet sheet = workbook.Worksheets[0];
// Add Cell Watch Item into the watch window
sheet.CellWatches.Add("B2");
'Instantiating a Workbook object
Dim workbook As Workbook = New Workbook()
'Get the first Worksheet.
Dim sheet as Worksheet = workbook.Worksheets(0);
'Add Cell Watch Item into the watch window
sheet.CellWatches.Add("B2")
Constructors
CellWatchCollection()
public CellWatchCollection()
Properties
this[int]
Gets and sets Aspose.Cells.CellWatch by index.
public CellWatch this[int index] { get; }
Property Value
this[string]
Gets and sets Aspose.Cells.CellWatch by the name of the cell.
public CellWatch this[string cellName] { get; }
Property Value
Methods
Add(int, int)
Adds Aspose.Cells.CellWatch with row and column.
public int Add(int row, int column)
Parameters
row
int
The row index.
column
int
The column index.
Returns
Returns the position of this item in the collection.
Add(string)
Adds Aspose.Cells.CellWatch with the name the of cell.
public int Add(string cellName)
Parameters
cellName
string
The name of the cell.
Returns
int </cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch></cellwatch>