Item

Cells indexer (1 of 2)

FårCell element vid angivet cellradindex och kolumnindex.

public Cell this[int row, int column] { get; }
ParameterBeskrivning
rowRadindex.
columnKolumnindex.

Returvärde

DeCell objekt.

Exempel

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells[0, 0];	//Hämtar cellen vid "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"

Se även


Cells indexer (2 of 2)

FårCell element vid det angivna cellnamnet.

public Cell this[string cellName] { get; }
ParameterBeskrivning
cellNameCellnamn, inklusive dess kolumnbokstav och radnummer, till exempel A5.

Returvärde

ACell objekt

Exempel

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells["A1"];	//Hämtar cellen vid "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"

Se även