mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-15 20:46:26 +00:00
Allow to get current iterator position (#980)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user