119 public function __construct($isSupervisor = FALSE, $isConditional = FALSE)
122 parent::__construct($isSupervisor);
124 if ($isConditional) {
125 $this->_horizontal = NULL;
126 $this->_vertical = NULL;
127 $this->_textRotation = NULL;
139 return $this->_parent->getSharedComponent()->getAlignment();
150 return array(
'alignment' => $array);
172 if (is_array($pStyles)) {
173 if ($this->_isSupervisor) {
177 if (isset($pStyles[
'horizontal'])) {
180 if (isset($pStyles[
'vertical'])) {
183 if (isset($pStyles[
'rotation'])) {
186 if (isset($pStyles[
'wrap'])) {
189 if (isset($pStyles[
'shrinkToFit'])) {
192 if (isset($pStyles[
'indent'])) {
195 if (isset($pStyles[
'readorder'])) {
211 if ($this->_isSupervisor) {
228 if ($this->_isSupervisor) {
233 $this->_horizontal = $pValue;
244 if ($this->_isSupervisor) {
261 if ($this->_isSupervisor) {
265 $this->_vertical = $pValue;
276 if ($this->_isSupervisor) {
291 if ($pValue == 255) {
296 if ( ($pValue >= -90 && $pValue <= 90) || $pValue == -165 ) {
297 if ($this->_isSupervisor) {
301 $this->_textRotation = $pValue;
316 if ($this->_isSupervisor) {
332 if ($this->_isSupervisor) {
336 $this->_wrapText = $pValue;
347 if ($this->_isSupervisor) {
363 if ($this->_isSupervisor) {
367 $this->_shrinkToFit = $pValue;
378 if ($this->_isSupervisor) {
398 if ($this->_isSupervisor) {
402 $this->_indent = $pValue;
413 if ($this->_isSupervisor) {
426 if ($pValue < 0 || $pValue > 2) {
429 if ($this->_isSupervisor) {
433 $this->_readorder = $pValue;
444 if ($this->_isSupervisor) {
450 . $this->_textRotation
451 . ($this->_wrapText ?
't' :
'f')
452 . ($this->_shrinkToFit ?
't' :
'f')
getWrapText()
Get Wrap Text.
const VERTICAL_DISTRIBUTED
setTextRotation($pValue=0)
Set TextRotation.
getHorizontal()
Get Horizontal.
setVertical($pValue=PHPExcel_Style_Alignment::VERTICAL_BOTTOM)
Set Vertical.
getHashCode()
Get hash code.
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
getStyleArray($array)
Build style array from subcomponents.
getShrinkToFit()
Get Shrink to fit.
setReadorder($pValue=0)
Set read order.
getTextRotation()
Get TextRotation.
__construct($isSupervisor=FALSE, $isConditional=FALSE)
Create a new PHPExcel_Style_Alignment.
getSharedComponent()
Get the shared style component for the currently active cell in currently active sheet.
setShrinkToFit($pValue=FALSE)
Set Shrink to fit.
setHorizontal($pValue=PHPExcel_Style_Alignment::HORIZONTAL_GENERAL)
Set Horizontal.
getVertical()
Get Vertical.
const HORIZONTAL_DISTRIBUTED
const HORIZONTAL_CENTER_CONTINUOUS
setIndent($pValue=0)
Set indent.
Create styles array
The data for the language used.
getReadorder()
Get read order.
applyFromArray($pStyles=NULL)
Apply styles from array.
setWrapText($pValue=FALSE)
Set Wrap Text.
getActiveSheet()
Get the currently active sheet.