You are here

public function PHPExcel_Worksheet_PageSetup::setFitToWidth in Loft Data Grids 6.2

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

* Set Fit To Width * *

Parameters

int? $pValue: * @param boolean $pUpdate Update fitToPage so it applies rather than scaling * @return PHPExcel_Worksheet_PageSetup

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageSetup.php, line 418

Class

PHPExcel_Worksheet_PageSetup
PHPExcel_Worksheet_PageSetup

Code

public function setFitToWidth($pValue = 1, $pUpdate = TRUE) {
  $this->_fitToWidth = $pValue;
  if ($pUpdate) {
    $this->_fitToPage = TRUE;
  }
  return $this;
}