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