HORIZONTAL_GENERAL
HORIZONTAL_GENERAL = 'general'
$parent : \PhpOffice\PhpSpreadsheet\Spreadsheet|\PhpOffice\PhpSpreadsheet\Style\Style
Parent. Only used for supervisor.
__construct(boolean $isSupervisor = false, boolean $isConditional = false)
Create a new Alignment.
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(\PhpOffice\PhpSpreadsheet\Spreadsheet|\PhpOffice\PhpSpreadsheet\Style\Style $parent, null|string $parentPropertyName = null) : \PhpOffice\PhpSpreadsheet\Style\Supervisor
Bind parent. Only used for supervisor.
\PhpOffice\PhpSpreadsheet\Spreadsheet|\PhpOffice\PhpSpreadsheet\Style\Style | $parent | |
null|string | $parentPropertyName |
getActiveSheet() : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Get the currently active sheet. Only used for supervisor.
getSharedComponent() : \PhpOffice\PhpSpreadsheet\Style\Alignment
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor.
applyFromArray(array $pStyles) : \PhpOffice\PhpSpreadsheet\Style\Alignment
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
[
'horizontal' => \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER,
'vertical' => \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER,
'textRotation' => 0,
'wrapText' => TRUE
]
);
array | $pStyles | Array containing style information |
setHorizontal(string $pValue) : \PhpOffice\PhpSpreadsheet\Style\Alignment
Set Horizontal.
string | $pValue | see self::HORIZONTAL_* |
setVertical(string $pValue) : \PhpOffice\PhpSpreadsheet\Style\Alignment
Set Vertical.
string | $pValue | see self::VERTICAL_* |
setTextRotation(integer $pValue) : \PhpOffice\PhpSpreadsheet\Style\Alignment
Set TextRotation.
integer | $pValue |
setWrapText(boolean $pValue) : \PhpOffice\PhpSpreadsheet\Style\Alignment
Set Wrap Text.
boolean | $pValue |
setShrinkToFit(boolean $pValue) : \PhpOffice\PhpSpreadsheet\Style\Alignment
Set Shrink to fit.
boolean | $pValue |
setIndent(integer $pValue) : \PhpOffice\PhpSpreadsheet\Style\Alignment
Set indent.
integer | $pValue |
setReadOrder(integer $pValue) : \PhpOffice\PhpSpreadsheet\Style\Alignment
Set read order.
integer | $pValue |