UNDERLINE_NONE
UNDERLINE_NONE = 'none'
PHPExcel_Style_Font
$_isSupervisor : bool
Supervisor?
$_parent : \PHPExcel_Style
Parent. Only used for supervisor
$_name : string
Font Name
$_size : float
Font Size
$_bold : bool
Bold
$_italic : bool
Italic
$_superScript : bool
Superscript
$_subScript : bool
Subscript
$_underline : string
Underline
$_strikethrough : bool
Strikethrough
$_color : \PHPExcel_Style_Color
Foreground color
__construct(bool $isSupervisor = FALSE, bool $isConditional = FALSE) : mixed
Create a new PHPExcel_Style_Font
bool | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
bool | $isConditional | Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are |
applyFromArray(array $pStyles = null) : \PHPExcel_Style_Font
Apply styles from array
$objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray(
array(
'name' => 'Arial',
'bold' => TRUE,
'italic' => FALSE,
'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE,
'strike' => FALSE,
'color' => array(
'rgb' => '808080'
)
)
);
array | $pStyles | Array containing style information |
setUnderline(string|bool $pValue = self::UNDERLINE_NONE) : \PHPExcel_Style_Font
Set Underline
string|bool | $pValue | PHPExcel_Style_Font underline type If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE, false equates to UNDERLINE_NONE |