DIAGONAL_NONE
DIAGONAL_NONE = 0
$isSupervisor : bool
Supervisor?
$parent : \PhpOffice\PhpSpreadsheet\Spreadsheet|\PhpOffice\PhpSpreadsheet\Style\Style
Parent. Only used for supervisor.
$parentPropertyName : null|string
Parent property name.
$left : \PhpOffice\PhpSpreadsheet\Style\Border
Left.
$right : \PhpOffice\PhpSpreadsheet\Style\Border
Right.
$top : \PhpOffice\PhpSpreadsheet\Style\Border
Top.
$bottom : \PhpOffice\PhpSpreadsheet\Style\Border
Bottom.
$diagonal : \PhpOffice\PhpSpreadsheet\Style\Border
Diagonal.
$diagonalDirection : int
DiagonalDirection.
$allBorders : \PhpOffice\PhpSpreadsheet\Style\Border
All borders pseudo-border. Only applies to supervisor.
$outline : \PhpOffice\PhpSpreadsheet\Style\Border
Outline pseudo-border. Only applies to supervisor.
$inside : \PhpOffice\PhpSpreadsheet\Style\Border
Inside pseudo-border. Only applies to supervisor.
$vertical : \PhpOffice\PhpSpreadsheet\Style\Border
Vertical pseudo-border. Only applies to supervisor.
$horizontal : \PhpOffice\PhpSpreadsheet\Style\Border
Horizontal pseudo-border. Only applies to supervisor.
__construct(bool $isSupervisor = false, bool $isConditional = false) : mixed
Create a new Borders.
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 |
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 |
applyFromArray(array $pStyles) : \PhpOffice\PhpSpreadsheet\Style\Borders
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray(
[
'bottom' => [
'borderStyle' => Border::BORDER_DASHDOT,
'color' => [
'rgb' => '808080'
]
],
'top' => [
'borderStyle' => Border::BORDER_DASHDOT,
'color' => [
'rgb' => '808080'
]
]
]
);
$spreadsheet->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray(
[
'allBorders' => [
'borderStyle' => Border::BORDER_DASHDOT,
'color' => [
'rgb' => '808080'
]
]
]
);
array | $pStyles | Array containing style information |