You are here

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

Duplicate cell style array to a range of cells

Please note that this will overwrite existing cell styles for cells in range, if they are in the styles array. For example, if you decide to set a range of cells to font bold, only include font bold in the styles array.

Parameters

array $pStyles Array containing style information:

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

boolean $pAdvanced Advanced mode for setting borders.:

Return value

PHPExcel_Worksheet

Throws

PHPExcel_Exception

File

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

Class

PHPExcel_Worksheet
PHPExcel_Worksheet

Code

public function duplicateStyleArray($pStyles = null, $pRange = '', $pAdvanced = true) {
  $this
    ->getStyle($pRange)
    ->applyFromArray($pStyles, $pAdvanced);
  return $this;
}