public function PHPExcel_Style_Borders::setDiagonalDirection in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Borders.php \PHPExcel_Style_Borders::setDiagonalDirection()
Set DiagonalDirection
Parameters
int $pValue:
Return value
1 call to PHPExcel_Style_Borders::setDiagonalDirection()
- PHPExcel_Style_Borders::applyFromArray in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Borders.php - Apply styles from array
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Borders.php, line 391
Class
- PHPExcel_Style_Borders
- PHPExcel_Style_Borders
Code
public function setDiagonalDirection($pValue = PHPExcel_Style_Borders::DIAGONAL_NONE) {
if ($pValue == '') {
$pValue = PHPExcel_Style_Borders::DIAGONAL_NONE;
}
if ($this->_isSupervisor) {
$styleArray = $this
->getStyleArray(array(
'diagonaldirection' => $pValue,
));
$this
->getActiveSheet()
->getStyle($this
->getSelectedCells())
->applyFromArray($styleArray);
}
else {
$this->_diagonalDirection = $pValue;
}
return $this;
}