You are here

public function PHPExcel_Worksheet::refreshColumnDimensions in Loft Data Grids 7.2

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

Refresh column dimensions

Return value

PHPExcel_Worksheet

File

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

Class

PHPExcel_Worksheet
PHPExcel_Worksheet

Code

public function refreshColumnDimensions() {
  $currentColumnDimensions = $this
    ->getColumnDimensions();
  $newColumnDimensions = array();
  foreach ($currentColumnDimensions as $objColumnDimension) {
    $newColumnDimensions[$objColumnDimension
      ->getColumnIndex()] = $objColumnDimension;
  }
  $this->_columnDimensions = $newColumnDimensions;
  return $this;
}