Allow to get current iterator position (#980)

This commit is contained in:
Mofasa 2019-05-30 16:42:18 +08:00 committed by Mark Baker
parent ebc0b56959
commit 0947427d9f
1 changed files with 10 additions and 0 deletions

View File

@ -170,6 +170,16 @@ class RowCellIterator extends CellIterator
return $this->currentColumnIndex <= $this->endColumnIndex && $this->currentColumnIndex >= $this->startColumnIndex;
}
/**
* Return the current iterator position.
*
* @return int
*/
public function getCurrentColumnIndex()
{
return $this->currentColumnIndex;
}
/**
* Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary.
*