Aspose::Cells::Cells::Get method
Contents
[
Hide
]Cells::Get(int32_t, int32_t) method
Gets the Cell element at the specified cell row index and column index.
Cell Aspose::Cells::Cells::Get(int32_t row, int32_t column)
Parameter | Type | Description |
---|---|---|
row | int32_t | Row index. |
column | int32_t | Column index. |
ReturnValue
The Cell object.
Examples
Aspose::Cells::Startup();
Workbook excel;
Cells cells = excel.GetWorksheets().Get(0).GetCells();
Cell cell = cells.Get(0, 0);//Gets the cell at "A1"
Aspose::Cells::Cleanup();
See Also
- Class Cell
- Class Vector
- Class Cells
- Namespace Aspose::Cells
- Library Aspose.Cells for C++
Cells::Get(const U16String&) method
Gets the Cell element at the specified cell name.
Cell Aspose::Cells::Cells::Get(const U16String &cellName)
Parameter | Type | Description |
---|---|---|
cellName | const U16String& | Cell name,including its column letter and row number, for example A5. |
ReturnValue
A Cell object
Examples
Aspose::Cells::Startup();
Workbook excel;
Cells cells = excel.GetWorksheets().Get(0).GetCells();
U16String val = u"A1";
Cell cell = cells.Get(val);//Gets the cell at "A1"
Aspose::Cells::Cleanup();
See Also
- Class Cell
- Class Vector
- Class U16String
- Class Cells
- Namespace Aspose::Cells
- Library Aspose.Cells for C++
Cells::Get(const char16_t*) method
Gets the Cell element at the specified cell name.
Cell Aspose::Cells::Cells::Get(const char16_t *cellName)
Parameter | Type | Description |
---|---|---|
cellName | const char16_t* | Cell name,including its column letter and row number, for example A5. |
ReturnValue
A Cell object
Examples
Aspose::Cells::Startup();
Workbook excel;
Cells cells = excel.GetWorksheets().Get(0).GetCells();
Cell cell = cells.Get(u"A1");//Gets the cell at "A1"
Aspose::Cells::Cleanup();
See Also
- Class Cell
- Class Vector
- Class Cells
- Namespace Aspose::Cells
- Library Aspose.Cells for C++