Item

Cells indexer (1 of 2)

Ottiene ilCell elemento in corrispondenza dell’indice di riga della cella e dell’indice di colonna specificati.

public Cell this[int row, int column] { get; }
ParametroDescrizione
rowIndice di riga.
columnIndice di colonna.

Valore di ritorno

IlCell oggetto.

Esempi

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells[0, 0];	//Ottiene la cella in "A1"

[Visual Basic]
Dim excel as Workbook = New Workbook()
Dim cells As Cells =  excel.Worksheets(0).Cells 
Dim cell As Cell =  cells(0,0)  'Gets the cell at "A1"

Guarda anche


Cells indexer (2 of 2)

Ottiene ilCell elemento nel nome della cella specificato.

public Cell this[string cellName] { get; }
ParametroDescrizione
cellNameNome della cella, inclusa la lettera della colonna e il numero di riga, ad esempio A5.

Valore di ritorno

UNCell oggetto

Esempi

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells["A1"];	//Ottiene la cella in "A1"

[Visual Basic]
Dim excel as Workbook = New Workbook()
Dim cells As Cells =  excel.Worksheets(0).Cells 
Dim cell As Cell =  cells("A1")  'Gets the cell at "A1"

Guarda anche