HORIZONTAL_GENERAL
HORIZONTAL_GENERAL = 'general'
PHPExcel_Style_Alignment
$_isSupervisor : bool
Supervisor?
$_parent : \PHPExcel_Style
Parent. Only used for supervisor
$_horizontal : string
Horizontal
$_vertical : string
Vertical
$_textRotation : int
Text rotation
$_wrapText : bool
Wrap text
$_shrinkToFit : bool
Shrink to fit
$_indent : int
Indent - only possible with horizontal alignment left and right
__construct(bool $isSupervisor = FALSE, bool $isConditional = FALSE) : mixed
Create a new PHPExcel_Style_Alignment
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_Alignment
Apply styles from array
$objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
array(
'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
'rotation' => 0,
'wrap' => TRUE
)
);
array | $pStyles | Array containing style information |