You are here

public function PHPExcel_Worksheet::setDefaultStyle 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::setDefaultStyle()

Set default style - should only be used by PHPExcel_IReader implementations!

Parameters

PHPExcel_Style $pValue:

Return value

PHPExcel_Worksheet

Throws

PHPExcel_Exception

File

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

Class

PHPExcel_Worksheet
PHPExcel_Worksheet

Code

public function setDefaultStyle(PHPExcel_Style $pValue) {
  $this->_parent
    ->getDefaultStyle()
    ->applyFromArray(array(
    'font' => array(
      'name' => $pValue
        ->getFont()
        ->getName(),
      'size' => $pValue
        ->getFont()
        ->getSize(),
    ),
  ));
  return $this;
}