You are here

public function PHPExcel_Worksheet_ColumnIterator::seek in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php \PHPExcel_Worksheet_ColumnIterator::seek()

* Set the column pointer to the selected column * *

Parameters

string $column The column address to set the current pointer at:

Return value

PHPExcel_Worksheet_ColumnIterator

Throws

PHPExcel_Exception

1 call to PHPExcel_Worksheet_ColumnIterator::seek()
PHPExcel_Worksheet_ColumnIterator::resetStart in vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php
* (Re)Set the start column and the current column pointer * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/ColumnIterator.php, line 125

Class

PHPExcel_Worksheet_ColumnIterator
PHPExcel_Worksheet_ColumnIterator

Code

public function seek($column = 'A') {
  $column = PHPExcel_Cell::columnIndexFromString($column) - 1;
  if ($column < $this->_startColumn || $column > $this->_endColumn) {
    throw new PHPExcel_Exception("Column {$column} is out of range ({$this->_startColumn} - {$this->_endColumn})");
  }
  $this->_position = $column;
  return $this;
}