Skip to main content

Метод Cell::getRowIndex

Метод возвращает индекс текущей строки. Индексация строк начинается с нуля.

Вызов​


size_t getRowIndex()

Пример​


Table sheet = document.getBlocks().getTable(0).get();
Cell cell = sheet.getCell("A3");
std::printf("%d", cell.getColumnIndex()); // 0
std::printf("%d", cell.getRowIndex()); // 2