Documentation

Alignment extends StyleBase
in package

Table of Contents

Constants

HORIZONTAL_ALIGNMENT_STYLES  = [\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_GENERAL, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_RIGHT, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER_CONTINUOUS, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_JUSTIFY]
VERTICAL_ALIGNMENT_STYLES  = [\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_BOTTOM, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_TOP, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_JUSTIFY]

Methods

parseStyle()  : array<string|int, mixed>
getAttributes()  : SimpleXMLElement
identifyFixedStyleValue()  : bool

Constants

HORIZONTAL_ALIGNMENT_STYLES

protected mixed HORIZONTAL_ALIGNMENT_STYLES = [\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_GENERAL, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_RIGHT, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER_CONTINUOUS, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_JUSTIFY]

VERTICAL_ALIGNMENT_STYLES

protected mixed VERTICAL_ALIGNMENT_STYLES = [\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_BOTTOM, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_TOP, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_JUSTIFY]

Methods

parseStyle()

public parseStyle(SimpleXMLElement $styleAttributes) : array<string|int, mixed>
Parameters
$styleAttributes : SimpleXMLElement
Return values
array<string|int, mixed>

getAttributes()

protected static getAttributes(SimpleXMLElement|null $simple, string $node) : SimpleXMLElement
Parameters
$simple : SimpleXMLElement|null
$node : string
Return values
SimpleXMLElement

identifyFixedStyleValue()

protected static identifyFixedStyleValue(array<string|int, mixed> $styleList, string &$styleAttributeValue) : bool
Parameters
$styleList : array<string|int, mixed>
$styleAttributeValue : string
Return values
bool

        
On this page

Search results