UNDERLINE_NONE
UNDERLINE_NONE = 'none'
PHPExcel_Style_Font
$_parent : \PHPExcel_Style
Parent. Only used for supervisor
$_color : \PHPExcel_Style_Color
Foreground color
__construct(boolean $isSupervisor = FALSE, boolean $isConditional = FALSE)
Create a new PHPExcel_Style_Font
| boolean | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
| boolean | $isConditional | Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are |
bindParent(\PHPExcel $parent, $parentPropertyName = NULL) : \PHPExcel_Style_Supervisor
Bind parent. Only used for supervisor
| \PHPExcel | $parent | |
| $parentPropertyName |
getActiveSheet() : \PHPExcel_Worksheet
Get the currently active sheet. Only used for supervisor
getSharedComponent() : \PHPExcel_Style_Font
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor
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 |
setName(string $pValue = 'Calibri') : \PHPExcel_Style_Font
Set Name
| string | $pValue |
setSize(double $pValue = 10) : \PHPExcel_Style_Font
Set Size
| double | $pValue |
setBold(boolean $pValue = false) : \PHPExcel_Style_Font
Set Bold
| boolean | $pValue |
setItalic(boolean $pValue = false) : \PHPExcel_Style_Font
Set Italic
| boolean | $pValue |
setSuperScript(boolean $pValue = false) : \PHPExcel_Style_Font
Set SuperScript
| boolean | $pValue |
setSubScript(boolean $pValue = false) : \PHPExcel_Style_Font
Set SubScript
| boolean | $pValue |
setUnderline(string|boolean $pValue = self::UNDERLINE_NONE) : \PHPExcel_Style_Font
Set Underline
| string|boolean | $pValue | PHPExcel_Style_Font underline type If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE, false equates to UNDERLINE_NONE |
setStrikethrough(boolean $pValue = false) : \PHPExcel_Style_Font
Set Strikethrough
| boolean | $pValue |
getColor() : \PHPExcel_Style_Color
Get Color
setColor(\PHPExcel_Style_Color $pValue = null) : \PHPExcel_Style_Font
Set Color
| \PHPExcel_Style_Color | $pValue |