Метод CellRange::getEnumerator()
Метод возвращает коллекцию ячеек в диапазоне.
Пример
Table firstSheet = document.getBlocks().getTable(0).get();
CellRange cellRange = firstSheet.getCellRange("B3:C4");
std::shared_ptr<Enumerator<Cell>> cellEnumerator = cellRange.getEnumerator();
while (cellEnumerator->isValid())
{
Cell cell = cellEnumerator->getCurrent();
std::printf("%s", cell.getFormattedValue().c_str());
cellEnumerator->goToNext();
}