Class CellWatchCollection
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
Représente la collection de cellules sur cette feuille de calcul étant surveillées dans la ‘fenêtre de surveillance’.
public class CellWatchCollection : CollectionBase<cellwatch>, IList<cellwatch>, ICollection<cellwatch>, IEnumerable<cellwatch>, ICollection, IEnumerable
Héritage
object ← CollectionBase<cellwatch> ← CellWatchCollection
Implémente
IList<cellwatch>, ICollection<cellwatch>, IEnumerable<cellwatch>, ICollection, IEnumerable
Membres hérités
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()
Exemples
//Instanciation d'un objet Workbook
Workbook workbook = new Workbook();
// Obtenir la première feuille de calcul.
Worksheet sheet = workbook.Worksheets[0];
// Ajouter un élément de surveillance de cellule dans la fenêtre de surveillance
sheet.CellWatches.Add("B2");
'Instanciation d'un objet Workbook
Dim workbook As Workbook = New Workbook()
'Obtenir la première feuille de calcul.
Dim sheet as Worksheet = workbook.Worksheets(0);
'Ajouter un élément de surveillance de cellule dans la fenêtre de surveillance
sheet.CellWatches.Add("B2")
Constructeurs
CellWatchCollection()
public CellWatchCollection()
Propriétés
this[int]
Obtient et définit Aspose.Cells.CellWatch par index.
public CellWatch this[int index] { get; }
Valeur de la propriété
this[string]
Obtient et définit Aspose.Cells.CellWatch par le nom de la cellule.
public CellWatch this[string cellName] { get; }
Valeur de la propriété
Méthodes
Add(int, int)
Ajoute Aspose.Cells.CellWatch avec la ligne et la colonne.
public int Add(int row, int column)
Paramètres
row
int
L’index de la ligne.
column
int
L’index de la colonne.
Retourne
Retourne la position de cet élément dans la collection.
Add(string)
Ajoute Aspose.Cells.CellWatch avec le nom de la cellule.
public int Add(string cellName)
Paramètres
cellName
string
Le nom de la cellule.