Item
Innehåll
[
Dölj
]Cells indexer (1 of 2)
FårCell
element vid angivet cellradindex och kolumnindex.
public Cell this[int row, int column] { get; }
Parameter | Beskrivning |
---|---|
row | Radindex. |
column | Kolumnindex. |
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
- class Cell
- class Cells
- namnutrymme Aspose.Cells
- hopsättning Aspose.Cells
Cells indexer (2 of 2)
FårCell
element vid det angivna cellnamnet.
public Cell this[string cellName] { get; }
Parameter | Beskrivning |
---|---|
cellName | Cellnamn, 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
- class Cell
- class Cells
- namnutrymme Aspose.Cells
- hopsättning Aspose.Cells