FILL_NONE
FILL_NONE = 'none'
$startcolorIndex : int
$endcolorIndex : int
$isSupervisor : bool
Supervisor?
$parent : \PhpOffice\PhpSpreadsheet\Spreadsheet|\PhpOffice\PhpSpreadsheet\Style\Style
Parent. Only used for supervisor.
$parentPropertyName : null|string
Parent property name.
$fillType : string
Fill type.
$rotation : float
Rotation.
$startColor : \PhpOffice\PhpSpreadsheet\Style\Color
Start color.
$endColor : \PhpOffice\PhpSpreadsheet\Style\Color
End color.
__construct(bool $isSupervisor = false, bool $isConditional = false) : mixed
Create a new Fill.
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\Fill
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray(
[
'fillType' => Fill::FILL_GRADIENT_LINEAR,
'rotation' => 0,
'startColor' => [
'rgb' => '000000'
],
'endColor' => [
'argb' => 'FFFFFFFF'
]
]
);
array | $pStyles | Array containing style information |