You are here

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

Set shared cell style to a range of cells

Please note that this will overwrite existing cell styles for cells in range!

Parameters

PHPExcel_Style $pSharedCellStyle Cell style to share:

string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1"):

Return value

PHPExcel_Worksheet

Throws

PHPExcel_Exception

File

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

Class

PHPExcel_Worksheet
PHPExcel_Worksheet

Code

public function setSharedStyle(PHPExcel_Style $pSharedCellStyle = null, $pRange = '') {
  $this
    ->duplicateStyle($pSharedCellStyle, $pRange);
  return $this;
}