You are here

public function PHPExcel::getDefaultStyle in Loft Data Grids 7.2

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

Get default style

Return value

PHPExcel_Style

Throws

PHPExcel_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel.php, line 925

Class

PHPExcel
PHPExcel

Code

public function getDefaultStyle() {
  if (isset($this->_cellXfCollection[0])) {
    return $this->_cellXfCollection[0];
  }
  throw new PHPExcel_Exception('No default style found for this workbook');
}