category |
PHPExcel |
package |
PHPExcel_Style |
copyright |
Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
Methods
Implement PHP __clone to create a deep clone, not just a shallow copy.
__clone()
Inherited
inherited_from |
\PHPExcel_Style_Supervisor::__clone() |
Create a new PHPExcel_Style_Alignment
__construct(boolean $isSupervisor, boolean $isConditional)
Parameters
$isSupervisor
boolean
Flag indicating if this is a supervisor or not
Leave this value at default unless you understand exactly what
its ramifications are
$isConditional
boolean
Flag indicating if this is a conditional style or not
Leave this value at default unless you understand exactly what
its ramifications are
Apply styles from array
applyFromArray(array $pStyles) : \PHPExcel_Style_Alignment
$objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
array(
'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,
'rotation' => 0,
'wrap' => TRUE
)
);
Parameters
$pStyles
array
Array containing style information
Exceptions
Returns
Bind parent.
bindParent(\PHPExcel $parent, $parentPropertyName) : \PHPExcel_Style_Supervisor
Inherited
inherited_from |
\PHPExcel_Style_Supervisor::bindParent() |
Parameters
$parentPropertyName
Returns
Get the currently active cell coordinate in currently active sheet.
getActiveCell() : string
Inherited
inherited_from |
\PHPExcel_Style_Supervisor::getActiveCell() |
Returns
string
E.g. 'A1'
Get the currently active sheet.
getActiveSheet() : \PHPExcel_Worksheet
Inherited
inherited_from |
\PHPExcel_Style_Supervisor::getActiveSheet() |
Returns
Get hash code
getHashCode() : string
Get Horizontal
getHorizontal() : string
Get indent
getIndent() : int
Is this a supervisor or a cell style component?
getIsSupervisor() : boolean
Inherited
inherited_from |
\PHPExcel_Style_Supervisor::getIsSupervisor() |
Returns
boolean
Get the currently active cell coordinate in currently active sheet.
getSelectedCells() : string
Inherited
inherited_from |
\PHPExcel_Style_Supervisor::getSelectedCells() |
Returns
string
E.g. 'A1'
Get the shared style component for the currently active cell in currently active sheet.
getSharedComponent() : \PHPExcel_Style_Alignment
Only used for style supervisor
Returns
Get Shrink to fit
getShrinkToFit() : boolean
Build style array from subcomponents
getStyleArray(array $array) : array
Parameters
$array
array
Returns
array
Get TextRotation
getTextRotation() : int
Get Vertical
getVertical() : string
Get Wrap Text
getWrapText() : boolean
Set TextRotation
setTextRotation(int $pValue) : \PHPExcel_Style_Alignment
Parameters
$pValue
int
Exceptions
Returns
Set Wrap Text
setWrapText(boolean $pValue) : \PHPExcel_Style_Alignment
Parameters
$pValue
boolean
Returns
Properties
$_isSupervisor : boolean
Inherited
inherited_from |
\PHPExcel_Style_Supervisor::$$_isSupervisor |
$_parent : \PHPExcel_Style
Inherited
inherited_from |
\PHPExcel_Style_Supervisor::$$_parent |
Constants
HORIZONTAL_CENTER
HORIZONTAL_CENTER
HORIZONTAL_CENTER_CONTINUOUS
HORIZONTAL_CENTER_CONTINUOUS
HORIZONTAL_GENERAL
HORIZONTAL_GENERAL
HORIZONTAL_JUSTIFY
HORIZONTAL_JUSTIFY
HORIZONTAL_LEFT
HORIZONTAL_LEFT
HORIZONTAL_RIGHT
HORIZONTAL_RIGHT
VERTICAL_BOTTOM
VERTICAL_BOTTOM
VERTICAL_CENTER
VERTICAL_CENTER
VERTICAL_JUSTIFY
VERTICAL_JUSTIFY
VERTICAL_TOP
VERTICAL_TOP