public function PHPExcel_Style_Alignment::setWrapText in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Alignment.php \PHPExcel_Style_Alignment::setWrapText()
* Set Wrap Text * *
Parameters
boolean $pValue: * @return PHPExcel_Style_Alignment
1 call to PHPExcel_Style_Alignment::setWrapText()
- PHPExcel_Style_Alignment::applyFromArray in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Alignment.php - * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray( * array( * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, …
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Alignment.php, line 328
Class
- PHPExcel_Style_Alignment
- PHPExcel_Style_Alignment
Code
public function setWrapText($pValue = FALSE) {
if ($pValue == '') {
$pValue = FALSE;
}
if ($this->_isSupervisor) {
$styleArray = $this
->getStyleArray(array(
'wrap' => $pValue,
));
$this
->getActiveSheet()
->getStyle($this
->getSelectedCells())
->applyFromArray($styleArray);
}
else {
$this->_wrapText = $pValue;
}
return $this;
}