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 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)

Implements interfaces:

Constants

Methods



Class Details

[line 36]
PHPExcel_Style_Alignment



Tags:

copyright:  Copyright (c) 2006 - 2010 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 226]

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 138]

PHPExcel_Style_Alignment bindParent( PHPExcel $parent)

Bind parent. Only used for supervisor



Tags:

access:  public


Parameters:

PHPExcel   $parent  

[ Top ]

method getActiveCell [line 192]

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 170]

PHPExcel_Worksheet getActiveSheet( )

Get the currently active sheet. Only used for supervisor



Tags:

access:  public


[ Top ]

method getHashCode [line 461]

string getHashCode( )

Get hash code



Tags:

return:  Hash code
access:  public


[ Top ]

method getHorizontal [line 261]

string getHorizontal( )

Get Horizontal



Tags:

access:  public


[ Top ]

method getIndent [line 428]

int getIndent( )

Get indent



Tags:

access:  public


[ Top ]

method getIsSupervisor [line 149]

boolean getIsSupervisor( )

Is this a supervisor or a real style component?



Tags:

access:  public


[ Top ]

method getSelectedCells [line 181]

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 160]

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 397]

boolean getShrinkToFit( )

Get Shrink to fit



Tags:

access:  public


[ Top ]

method getStyleArray [line 203]

array getStyleArray( array $array)

Build style array from subcomponents



Tags:

access:  public


Parameters:

array   $array  

[ Top ]

method getTextRotation [line 326]

int getTextRotation( )

Get TextRotation



Tags:

access:  public


[ Top ]

method getVertical [line 294]

string getVertical( )

Get Vertical



Tags:

access:  public


[ Top ]

method getWrapText [line 366]

boolean getWrapText( )

Get Wrap Text



Tags:

access:  public


[ Top ]

method setHorizontal [line 274]

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

Set Horizontal



Tags:

access:  public


Parameters:

string   $pValue  

[ Top ]

method setIndent [line 441]

PHPExcel_Style_Alignment setIndent( [int $pValue = 0])

Set indent



Tags:

access:  public


Parameters:

int   $pValue  

[ Top ]

method setShrinkToFit [line 410]

PHPExcel_Style_Alignment setShrinkToFit( [boolean $pValue = false])

Set Shrink to fit



Tags:

access:  public


Parameters:

boolean   $pValue  

[ Top ]

method setTextRotation [line 340]

PHPExcel_Style_Alignment setTextRotation( [int $pValue = 0])

Set TextRotation



Tags:

throws:  Exception
access:  public


Parameters:

int   $pValue  

[ Top ]

method setVertical [line 307]

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

Set Vertical



Tags:

access:  public


Parameters:

string   $pValue  

[ Top ]

method setWrapText [line 379]

PHPExcel_Style_Alignment setWrapText( [boolean $pValue = false])

Set Wrap Text



Tags:

access:  public


Parameters:

boolean   $pValue  

[ Top ]

method __clone [line 479]

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 Tue, 01 Jun 2010 17:00:40 +0200 by phpDocumentor 1.4.3