Aspose::Cells::Cells::Get method

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)
ParameterTypeDescription
rowint32_tRow index.
columnint32_tColumn 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

Cells::Get(const U16String&) method

Gets the Cell element at the specified cell name.

Cell Aspose::Cells::Cells::Get(const U16String &cellName)
ParameterTypeDescription
cellNameconst 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

Cells::Get(const char16_t*) method

Gets the Cell element at the specified cell name.

Cell Aspose::Cells::Cells::Get(const char16_t *cellName)
ParameterTypeDescription
cellNameconst 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