You are here

public function PHPExcel_Worksheet::refreshRowDimensions in Loft Data Grids 6.2

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

Refresh row dimensions

Return value

PHPExcel_Worksheet

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php, line 682

Class

PHPExcel_Worksheet
PHPExcel_Worksheet

Code

public function refreshRowDimensions() {
  $currentRowDimensions = $this
    ->getRowDimensions();
  $newRowDimensions = array();
  foreach ($currentRowDimensions as $objRowDimension) {
    $newRowDimensions[$objRowDimension
      ->getRowIndex()] = $objRowDimension;
  }
  $this->_rowDimensions = $newRowDimensions;
  return $this;
}