Item

Cells indexer (1 of 2)

Ruft die abCell Element am angegebenen Zellenzeilenindex und Spaltenindex.

public Cell this[int row, int column] { get; }
ParameterBeschreibung
rowZeilenindex.
columnSpaltenindex.

Rückgabewert

DasCell Objekt.

Beispiele

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells[0, 0];	// Ruft die Zelle bei "A1" ab

[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"

Siehe auch


Cells indexer (2 of 2)

Ruft die abCell Element am angegebenen Zellennamen.

public Cell this[string cellName] { get; }
ParameterBeschreibung
cellNameZellenname, einschließlich Spaltenbuchstabe und Zeilennummer, z. B. A5.

Rückgabewert

EINCell Objekt

Beispiele

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells["A1"];	// Ruft die Zelle bei "A1" ab

[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"

Siehe auch