PHPExcel_Style

# Class: PHPExcel_Style Source Location: /PHPExcel/Style.php
### Class Overview
PHPExcel_Style #### Author(s): #### Copyright: Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) Implements interfaces: PHPExcel_IComparable | ### Methods __construct applyFromArray bindParent getActiveCell getActiveSheet getAlignment getBorders getConditionalStyles getFill getFont getHashCode getIndex getIsSupervisor getNumberFormat getParent getProtection getSelectedCells getSharedComponent setConditionalStyles setFont setIndex __clone
### Class Details [line 36] PHPExcel_Style #### Tags:
copyright: | Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
[ Top ] ### Class Methods ### constructor __construct [line 113]
`PHPExcel_Style __construct( [boolean $isSupervisor = false])`
Create a new PHPExcel_Style #### Tags:
access: | public
#### Parameters:
boolean | $isSupervisor |
[ Top ] ### method applyFromArray [line 261]
`PHPExcel_Style applyFromArray( [array $pStyles = null], [boolean $pAdvanced = true])`
Apply styles from array $objPHPExcel->getActiveSheet()->getStyle('B2')->applyFromArray( array( 'font' => array( 'name' => 'Arial', 'bold' => true, 'italic' => false, 'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE, 'strike' => false, 'color' => array( 'rgb' => '808080' ) ), 'borders' => 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' ) ) ) ) ); #### Tags:
throws: | Exception
access: | public
#### Parameters:
array | $pStyles | Array containing style information
boolean | $pAdvanced | Advanced mode for setting borders.
[ Top ] ### method bindParent [line 144]
`PHPExcel_Style bindParent( PHPExcel $parent)`
Bind parent. Only used for supervisor #### Tags:
access: | public
#### Parameters:
PHPExcel | $parent |
[ Top ] ### method getActiveCell [line 207]
`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 185]
`PHPExcel_Worksheet getActiveSheet( )`
Get the currently active sheet. Only used for supervisor #### Tags:
access: | public
[ Top ] ### method getAlignment [line 579]
`PHPExcel_Style_Alignment getAlignment( )`
Get Alignment #### Tags:
access: | public
[ Top ] ### method getBorders [line 570]
`PHPExcel_Style_Borders getBorders( )`
Get Borders #### Tags:
access: | public
[ Top ] ### method getConditionalStyles [line 597]
`PHPExcel_Style_Conditional[] getConditionalStyles( )`
Get Conditional Styles. Only used on supervisor. #### Tags:
access: | public
[ Top ] ### method getFill [line 540]
`PHPExcel_Style_Fill getFill( )`
Get Fill #### Tags:
access: | public
[ Top ] ### method getFont [line 549]
`PHPExcel_Style_Font getFont( )`
Get Font #### Tags:
access: | public
[ Top ] ### method getHashCode [line 628]
`string getHashCode( )`
Get hash code #### Tags:
return: | Hash code
access: | public
[ Top ] ### method getIndex [line 651]
`int getIndex( )`
Get own index in style collection #### Tags:
access: | public
[ Top ] ### method getIsSupervisor [line 155]
`boolean getIsSupervisor( )`
Is this a supervisor or a real style component? #### Tags:
access: | public
[ Top ] ### method getNumberFormat [line 588]
`PHPExcel_Style_NumberFormat getNumberFormat( )`
Get Number Format #### Tags:
access: | public
[ Top ] ### method getParent [line 217]
`PHPExcel getParent( )`
Get parent. Only used for style supervisor #### Tags:
access: | public
[ Top ] ### method getProtection [line 619]
`PHPExcel_Style_Protection getProtection( )`
Get Protection #### Tags:
access: | public
[ Top ] ### method getSelectedCells [line 196]
`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 166]
`PHPExcel_Style 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 setConditionalStyles [line 607]
`PHPExcel_Style setConditionalStyles( [PHPExcel_Style_Conditional[] $pValue = null])`
Set Conditional Styles. Only used on supervisor. #### Tags:
access: | public
#### Parameters:
PHPExcel_Style_Conditional[] | $pValue | Array of condtional styles
[ Top ] ### method setFont [line 559]
`PHPExcel_Style setFont( PHPExcel_Style_Font $font)`
Set font #### Tags:
access: | public
#### Parameters:
PHPExcel_Style_Font | $font |
[ Top ] ### method setIndex [line 661]
`void setIndex( int $pValue)`
Set own index in style collection #### Tags:
access: | public
#### Parameters:
int | $pValue |
[ Top ] ### method __clone [line 669]
`void __clone( )`
Implement PHP __clone to create a deep clone, not just a shallow copy. #### Tags:
access: | public
[ Top ] Documentation generated on Sun, 27 Feb 2011 16:34:19 -0800 by phpDocumentor 1.4.3