PHPExcel_Style_Borders
category | PHPExcel |
---|---|
package | PHPExcel_Style |
copyright | Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) |
__clone()
inherited_from | \PHPExcel_Style_Supervisor::__clone() |
---|
__construct(boolean $isSupervisor, boolean $isConditional)
boolean
Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are
boolean
Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are
applyFromArray(array $pStyles) : \PHPExcel_Style_Borders
$objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray(
array(
'bottom' => array(
'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
'color' => array(
'rgb' => '808080'
)
),
'top' => array(
'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
'color' => array(
'rgb' => '808080'
)
)
)
);
$objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray(
array(
'allborders' => array(
'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
'color' => array(
'rgb' => '808080'
)
)
)
);
array
Array containing style information
\PHPExcel_Exception |
---|
bindParent(\PHPExcel $parent, $parentPropertyName) : \PHPExcel_Style_Supervisor
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::bindParent() |
---|
\PHPExcel
getActiveCell() : string
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getActiveCell() |
---|
string
E.g. 'A1'getActiveSheet() : \PHPExcel_Worksheet
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getActiveSheet() |
---|
getDiagonalDirection() : int
int
getHashCode() : string
string
Hash codegetInside() : boolean
getIsSupervisor() : boolean
inherited_from | \PHPExcel_Style_Supervisor::getIsSupervisor() |
---|
boolean
getOutline() : boolean
getSelectedCells() : string
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getSelectedCells() |
---|
string
E.g. 'A1'getSharedComponent() : \PHPExcel_Style_Borders
getStyleArray(array $array) : array
array
array
$_allBorders : \PHPExcel_Style_Border
Only applies to supervisor.
$_bottom : \PHPExcel_Style_Border
$_diagonal : \PHPExcel_Style_Border
$_diagonalDirection : int
$_horizontal : \PHPExcel_Style_Border
Only applies to supervisor.
$_inside : \PHPExcel_Style_Border
Only applies to supervisor.
$_isSupervisor : boolean
inherited_from | \PHPExcel_Style_Supervisor::$$_isSupervisor |
---|
$_left : \PHPExcel_Style_Border
$_outline : \PHPExcel_Style_Border
Only applies to supervisor.
$_parent : \PHPExcel_Style
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::$$_parent |
---|
$_right : \PHPExcel_Style_Border
$_top : \PHPExcel_Style_Border
$_vertical : \PHPExcel_Style_Border
Only applies to supervisor.
DIAGONAL_BOTH
DIAGONAL_DOWN
DIAGONAL_NONE
DIAGONAL_UP