CellWatchCollection
CellWatchCollection class
Rappresenta la raccolta di celle su questo foglio di lavoro osservata nella “finestra di controllo”.
public class CellWatchCollection : CollectionBase<CellWatch>
Costruttori
Proprietà
Metodi
| Nome | Descrizione |
|---|
| Add(string) | Aggiunge |
| Add(int, int) | AggiungeCellWatch con riga e colonna. |
| 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) | |
Esempi
[C#]
//Creazione di un'istanza di un oggetto cartella di lavoro
Workbook workbook = new Workbook();
// Ottieni il primo foglio di lavoro.
Worksheet sheet = workbook.Worksheets[0];
// Aggiungi l'elemento di controllo cellulare nella finestra di controllo
sheet.CellWatches.Add("B2");
[Visual Basic]
'Creazione di un'istanza di un oggetto Workbook
Dim workbook As Workbook = New Workbook()
'Ottieni il primo foglio di lavoro.
Dim sheet as Worksheet = workbook.Worksheets(0);
'Aggiungi Cell Watch Item nella finestra di controllo
sheet.CellWatches.Add("B2")
Guarda anche