Item
Inhalt
[
Ausblenden
]Cells indexer (1 of 2)
Ruft die abCell
Element am angegebenen Zellenzeilenindex und Spaltenindex.
public Cell this[int row, int column] { get; }
Parameter | Beschreibung |
---|---|
row | Zeilenindex. |
column | Spaltenindex. |
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
- class Cell
- class Cells
- namensraum Aspose.Cells
- Montage Aspose.Cells
Cells indexer (2 of 2)
Ruft die abCell
Element am angegebenen Zellennamen.
public Cell this[string cellName] { get; }
Parameter | Beschreibung |
---|---|
cellName | Zellenname, 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
- class Cell
- class Cells
- namensraum Aspose.Cells
- Montage Aspose.Cells