Documentation

Alignment extends StyleBase

Table of Contents

HORIZONTAL_ALIGNMENT_STYLES  = [PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_GENERAL, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_LEFT, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_RIGHT, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_CENTER, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_CENTER_CONTINUOUS, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_JUSTIFY]
VERTICAL_ALIGNMENT_STYLES  = [PhpOfficePhpSpreadsheetStyleAlignment::VERTICAL_BOTTOM, PhpOfficePhpSpreadsheetStyleAlignment::VERTICAL_TOP, PhpOfficePhpSpreadsheetStyleAlignment::VERTICAL_CENTER, PhpOfficePhpSpreadsheetStyleAlignment::VERTICAL_JUSTIFY]
parseStyle()  : array<string|int, mixed>
getAttributes()  : SimpleXMLElement
identifyFixedStyleValue()  : bool

Constants

HORIZONTAL_ALIGNMENT_STYLES

protected mixed HORIZONTAL_ALIGNMENT_STYLES = [PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_GENERAL, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_LEFT, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_RIGHT, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_CENTER, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_CENTER_CONTINUOUS, PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_JUSTIFY]

VERTICAL_ALIGNMENT_STYLES

protected mixed VERTICAL_ALIGNMENT_STYLES = [PhpOfficePhpSpreadsheetStyleAlignment::VERTICAL_BOTTOM, PhpOfficePhpSpreadsheetStyleAlignment::VERTICAL_TOP, PhpOfficePhpSpreadsheetStyleAlignment::VERTICAL_CENTER, PhpOfficePhpSpreadsheetStyleAlignment::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

Search results