CellAlignment
Table of Contents
Properties
-
$horizontalMap
: array<string, int>
-
$verticalMap
: array<string, int>
Methods
-
horizontal()
: int
-
vertical()
: int
-
wrap()
: int
$horizontalMap
private
static array<string, int>
$horizontalMap
= [\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_GENERAL => 0, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT => 1, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_RIGHT => 3, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER => 2, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER_CONTINUOUS => 6, \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_JUSTIFY => 5]
$verticalMap
private
static array<string, int>
$verticalMap
= [\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_BOTTOM => 2, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_TOP => 0, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER => 1, \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_JUSTIFY => 3]
horizontal()
public
static horizontal(Alignment $alignment) : int
Parameters
-
$alignment
: Alignment
-
vertical()
public
static vertical(Alignment $alignment) : int
Parameters
-
$alignment
: Alignment
-
wrap()
public
static wrap(Alignment $alignment) : int
Parameters
-
$alignment
: Alignment
-