PHPExcel_Style
[ class tree: PHPExcel_Style ] [ index: PHPExcel_Style ] [ all elements ]

Class: PHPExcel_Style_Alignment

Source Location: /PHPExcel/Style/Alignment.php

Class Overview


PHPExcel_Style_Alignment


Author(s):

Copyright:

  • Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

Implements interfaces:

Constants

Methods



Class Details

[line 36]
PHPExcel_Style_Alignment



Tags:

copyright:  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)


[ Top ]


Class Methods


constructor __construct [line 118]

PHPExcel_Style_Alignment __construct( [ $isSupervisor = false])

Create a new PHPExcel_Style_Alignment



Tags:

access:  public


Parameters:

   $isSupervisor  

[ Top ]

method applyFromArray [line 218]

PHPExcel_Style_Alignment applyFromArray( [array $pStyles = null])

Apply styles from array

  1.  $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
  2.         array(
  3.             'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
  4.             'vertical'   => PHPExcel_Style_Alignment::VERTICAL_CENTER,
  5.             'rotation'   => 0,
  6.             'wrap'       => true
  7.         )
  8.  );




Tags:

throws:  Exception
access:  public


Parameters:

array   $pStyles   Array containing style information

[ Top ]

method bindParent [line 130]

PHPExcel_Style_Alignment bindParent( PHPExcel $parent)

Bind parent. Only used for supervisor



Tags:

access:  public


Parameters:

PHPExcel   $parent  

[ Top ]

method getActiveCell [line 184]

string getActiveCell( )

Get the currently active cell coordinate in currently active sheet.

Only used for supervisor




Tags:

return:  E.g. 'A1'
access:  public


[ Top ]

method getActiveSheet [line 162]

PHPExcel_Worksheet getActiveSheet( )

Get the currently active sheet. Only used for supervisor



Tags:

access:  public


[ Top ]

method getHashCode [line 453]

string getHashCode( )

Get hash code



Tags:

return:  Hash code
access:  public


[ Top ]

method getHorizontal [line 253]

string getHorizontal( )

Get Horizontal



Tags:

access:  public


[ Top ]

method getIndent [line 420]

int getIndent( )

Get indent



Tags:

access:  public


[ Top ]

method getIsSupervisor [line 141]

boolean getIsSupervisor( )

Is this a supervisor or a real style component?



Tags:

access:  public


[ Top ]

method getSelectedCells [line 173]

string getSelectedCells( )

Get the currently active cell coordinate in currently active sheet.

Only used for supervisor




Tags:

return:  E.g. 'A1'
access:  public


[ Top ]

method getSharedComponent [line 152]

PHPExcel_Style_Alignment getSharedComponent( )

Get the shared style component for the currently active cell in currently active sheet.

Only used for style supervisor




Tags:

access:  public


[ Top ]

method getShrinkToFit [line 389]

boolean getShrinkToFit( )

Get Shrink to fit



Tags:

access:  public


[ Top ]

method getStyleArray [line 195]

array getStyleArray( array $array)

Build style array from subcomponents



Tags:

access:  public


Parameters:

array   $array  

[ Top ]

method getTextRotation [line 318]

int getTextRotation( )

Get TextRotation



Tags:

access:  public


[ Top ]

method getVertical [line 286]

string getVertical( )

Get Vertical



Tags:

access:  public


[ Top ]

method getWrapText [line 358]

boolean getWrapText( )

Get Wrap Text



Tags:

access:  public


[ Top ]

method setHorizontal [line 266]

PHPExcel_Style_Alignment setHorizontal( [string $pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL])

Set Horizontal



Tags:

access:  public


Parameters:

string   $pValue  

[ Top ]

method setIndent [line 433]

PHPExcel_Style_Alignment setIndent( [int $pValue = 0])

Set indent



Tags:

access:  public


Parameters:

int   $pValue  

[ Top ]

method setShrinkToFit [line 402]

PHPExcel_Style_Alignment setShrinkToFit( [boolean $pValue = false])

Set Shrink to fit



Tags:

access:  public


Parameters:

boolean   $pValue  

[ Top ]

method setTextRotation [line 332]

PHPExcel_Style_Alignment setTextRotation( [int $pValue = 0])

Set TextRotation



Tags:

throws:  Exception
access:  public


Parameters:

int   $pValue  

[ Top ]

method setVertical [line 299]

PHPExcel_Style_Alignment setVertical( [string $pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM])

Set Vertical



Tags:

access:  public


Parameters:

string   $pValue  

[ Top ]

method setWrapText [line 371]

PHPExcel_Style_Alignment setWrapText( [boolean $pValue = false])

Set Wrap Text



Tags:

access:  public


Parameters:

boolean   $pValue  

[ Top ]

method __clone [line 471]

void __clone( )

Implement PHP __clone to create a deep clone, not just a shallow copy.



Tags:

access:  public


[ Top ]


Class Constants

HORIZONTAL_CENTER =  'center'

[line 42]


[ Top ]

HORIZONTAL_CENTER_CONTINUOUS =  'centerContinuous'

[line 43]


[ Top ]

HORIZONTAL_GENERAL =  'general'

[line 39]


[ Top ]

HORIZONTAL_JUSTIFY =  'justify'

[line 44]


[ Top ]

HORIZONTAL_LEFT =  'left'

[line 40]


[ Top ]

HORIZONTAL_RIGHT =  'right'

[line 41]


[ Top ]

VERTICAL_BOTTOM =  'bottom'

[line 47]


[ Top ]

VERTICAL_CENTER =  'center'

[line 49]


[ Top ]

VERTICAL_JUSTIFY =  'justify'

[line 50]


[ Top ]

VERTICAL_TOP =  'top'

[line 48]


[ Top ]



Documentation generated on Sun, 27 Feb 2011 16:26:49 -0800 by phpDocumentor 1.4.3