|  | 
|  | __construct (Worksheet $worksheet, string $columnIndex='A', int $startRow=1, ?int $endRow=null, bool $iterateOnlyExistingCells=false) | 
|  | Create a new row iterator. 
 | 
|  | 
|  | current () | 
|  | Return the current cell in this worksheet column. 
 | 
|  | 
|  | getIfNotExists () | 
|  | 
|  | getIterateOnlyExistingCells () | 
|  | Get loop only existing cells. 
 | 
|  | 
|  | key () | 
|  | Return the current iterator key. 
 | 
|  | 
|  | next () | 
|  | Set the iterator to its next value. 
 | 
|  | 
|  | prev () | 
|  | Set the iterator to its previous value. 
 | 
|  | 
|  | resetEnd (?int $endRow=null) | 
|  | (Re)Set the end row. 
 | 
|  | 
|  | resetStart (int $startRow=1) | 
|  | (Re)Set the start row and the current row pointer. 
 | 
|  | 
|  | rewind () | 
|  | Rewind the iterator to the starting row. 
 | 
|  | 
|  | seek (int $row=1) | 
|  | Set the row pointer to the selected row. 
 | 
|  | 
|  | setIfNotExists (bool $ifNotExists=self::IF_NOT_EXISTS_CREATE_NEW) | 
|  | 
|  | setIterateOnlyExistingCells (bool $value) | 
|  | Set the iterator to loop only existing cells. 
 | 
|  | 
|  | valid () | 
|  | Indicate if more rows exist in the worksheet range of rows that we're iterating. 
 | 
|  | 
|  | 
| const | IF_NOT_EXISTS_CREATE_NEW = true | 
|  | 
| const | IF_NOT_EXISTS_RETURN_NULL = false | 
|  | 
| const | TREAT_EMPTY_STRING_AS_EMPTY_CELL = 2 | 
|  | 
| const | TREAT_NULL_VALUE_AS_EMPTY_CELL = 1 | 
|  | 
|  | 
| Cells | $cellCollection | 
|  | Cell Collection to iterate. 
 | 
|  | 
| bool | $ifNotExists = self::IF_NOT_EXISTS_CREATE_NEW | 
|  | If iterating all cells, and a cell doesn't exist, identifies whether a new cell should be created, or if the iterator should return a null value. 
 | 
|  | 
| bool | $onlyExistingCells = false | 
|  | Iterate only existing cells. 
 | 
|  | 
| Worksheet | $worksheet | 
|  | Worksheet to iterate. 
 | 
|  | 
◆ __construct()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::__construct | ( | Worksheet | $worksheet, | 
        
          |  |  | string | $columnIndex = 'A', | 
        
          |  |  | int | $startRow = 1, | 
        
          |  |  | ?int | $endRow = null, | 
        
          |  |  | bool | $iterateOnlyExistingCells = false ) | 
      
 
Create a new row iterator. 
- Parameters
- 
  
    | Worksheet | $worksheet | The worksheet to iterate over |  | string | $columnIndex | The column that we want to iterate |  | int | $startRow | The row number at which to start iterating |  | ?int | $endRow | Optionally, the row number at which to stop iterating |  
 
 
 
◆ adjustForExistingOnlyRange()
  
  | 
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::adjustForExistingOnlyRange | ( |  | ) |  |  | protected | 
 
 
◆ current()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::current | ( |  | ) |  | 
      
 
 
◆ key()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::key | ( |  | ) |  | 
      
 
 
◆ next()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::next | ( |  | ) |  | 
      
 
 
◆ resetEnd()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::resetEnd | ( | ?int | $endRow = null | ) |  | 
      
 
(Re)Set the end row. 
- Parameters
- 
  
    | ?int | $endRow | The row number at which to stop iterating |  
 
- Return values
- 
  
  
 
 
◆ resetStart()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::resetStart | ( | int | $startRow = 1 | ) |  | 
      
 
(Re)Set the start row and the current row pointer. 
- Parameters
- 
  
    | int | $startRow | The row number at which to start iterating |  
 
- Return values
- 
  
  
 
 
◆ rewind()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::rewind | ( |  | ) |  | 
      
 
 
◆ seek()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::seek | ( | int | $row = 1 | ) |  | 
      
 
Set the row pointer to the selected row. 
- Parameters
- 
  
    | int | $row | The row number to set the current pointer at |  
 
- Return values
- 
  
  
 
 
◆ valid()
      
        
          | PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator::valid | ( |  | ) |  | 
      
 
 
The documentation for this class was generated from the following file:
- lib/phpspreadsheet/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnCellIterator.php