public function PHPExcel_Style_Font::setUnderline in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php \PHPExcel_Style_Font::setUnderline()
* Set Underline * *
Parameters
string|boolean $pValue PHPExcel_Style_Font underline type: * If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE, * false equates to UNDERLINE_NONE * @return PHPExcel_Style_Font
1 call to PHPExcel_Style_Font::setUnderline()
- PHPExcel_Style_Font::applyFromArray in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Font.php - * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray( * array( * 'name' => 'Arial', * 'bold' => TRUE, …
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Font.php, line 434
Class
- PHPExcel_Style_Font
- PHPExcel_Style_Font
Code
public function setUnderline($pValue = self::UNDERLINE_NONE) {
if (is_bool($pValue)) {
$pValue = $pValue ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE;
}
elseif ($pValue == '') {
$pValue = self::UNDERLINE_NONE;
}
if ($this->_isSupervisor) {
$styleArray = $this
->getStyleArray(array(
'underline' => $pValue,
));
$this
->getActiveSheet()
->getStyle($this
->getSelectedCells())
->applyFromArray($styleArray);
}
else {
$this->_underline = $pValue;
}
return $this;
}