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

Class: PHPExcel_Style_Font

Source Location: /PHPExcel/Style/Font.php

Class Overview


PHPExcel_Style_Font


Author(s):

Copyright:

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

Implements interfaces:

Variables

Constants

Methods



Class Details

[line 43]
PHPExcel_Style_Font

PHPExcel_Style_Font




Tags:

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


[ Top ]


Class Variables

$_bold =

[line 64]

Bold

Bold




Tags:

access:  private

Type:   boolean


[ Top ]

$_color =

[line 92]

Foreground color

Foreground color




Tags:

access:  private



[ Top ]

$_italic =

[line 71]

Italic

Italic




Tags:

access:  private

Type:   boolean


[ Top ]

$_name =

[line 57]

Name

Name




Tags:

access:  private

Type:   string


[ Top ]

$_parent =

[line 100]

Parent Style

Parent Style




Tags:

access:  private

Type:   PHPExcel_Style


[ Top ]

$_parentPropertyName =

[line 107]

Parent Borders

Parent Borders




Tags:

var:  string
access:  private

Type:   _parentPropertyName


[ Top ]

$_striketrough =

[line 85]

Striketrough

Striketrough




Tags:

access:  private

Type:   boolean


[ Top ]

$_underline =

[line 78]

Underline

Underline




Tags:

access:  private

Type:   string


[ Top ]



Class Methods


constructor __construct [line 112]

PHPExcel_Style_Font __construct( )

Create a new PHPExcel_Style_Font

Create a new PHPExcel_Style_Font




Tags:

access:  public


[ Top ]

method applyFromArray [line 198]

void applyFromArray( [array $pStyles = null])

Apply styles from array

Apply styles from array

  1.  $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray(
  2.          array(
  3.              'name'      => 'Arial',
  4.              'bold'      => true,
  5.              'italic'    => false,
  6.              'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE,
  7.              'strike'    => false,
  8.              'color'     => array(
  9.                  'rgb' => '808080'
  10.              )
  11.          )
  12.  );




Tags:

throws:  Exception
access:  public


Parameters:

array   $pStyles   Array containing style information

[ Top ]

method getBold [line 273]

boolean getBold( )

Get Bold

Get Bold




Tags:

access:  public


[ Top ]

method getColor [line 357]

PHPExcel_Style_Color getColor( )

Get Color

Get Color




Tags:

access:  public


[ Top ]

method getHashCode [line 378]

string getHashCode( )

Get hash code

Get hash code




Tags:

return:  Hash code
access:  public


[ Top ]

method getItalic [line 294]

boolean getItalic( )

Get Italic

Get Italic




Tags:

access:  public


[ Top ]

method getName [line 231]

string getName( )

Get Name

Get Name




Tags:

access:  public


[ Top ]

method getSize [line 252]

double getSize( )

Get Size

Get Size




Tags:

access:  public


[ Top ]

method getStriketrough [line 336]

boolean getStriketrough( )

Get Striketrough

Get Striketrough




Tags:

access:  public


[ Top ]

method getUnderline [line 315]

string getUnderline( )

Get Underline

Get Underline




Tags:

access:  public


[ Top ]

method propertyBeginBind [line 164]

PHPExcel_Style_Font propertyBeginBind( )

Property Begin Bind If no PHPExcel_Style_Font has been bound to PHPExcel_Style then bind this one.

Property Begin Bind If no PHPExcel_Style_Font has been bound to PHPExcel_Style then bind this one. Return the actual bound one.




Tags:

access:  private


[ Top ]

method propertyGetBound [line 147]

PHPExcel_Style_Font propertyGetBound( )

Property Get Bound

Property Get Bound Returns the PHPExcel_Style_Font that is actual bound to PHPExcel_Style




Tags:

access:  private


[ Top ]

method propertyPrepareBind [line 132]

void propertyPrepareBind( $parent $parent, $parentPropertyName $parentPropertyName)

Property Prepare bind

Property Prepare bind Configures this object for late binding as a property of a parent object




Tags:

access:  public


Parameters:

$parent   $parent  
$parentPropertyName   $parentPropertyName  

[ Top ]

method setBold [line 282]

void setBold( [boolean $pValue = false])

Set Bold

Set Bold




Tags:

access:  public


Parameters:

boolean   $pValue  

[ Top ]

method setColor [line 369]

void setColor( [PHPExcel_Style_Color $pValue = null])

Set Color

Set Color




Tags:

throws:  Exception
access:  public


Parameters:

PHPExcel_Style_Color   $pValue  

[ Top ]

method setItalic [line 303]

void setItalic( [boolean $pValue = false])

Set Italic

Set Italic




Tags:

access:  public


Parameters:

boolean   $pValue  

[ Top ]

method setName [line 240]

void setName( [string $pValue = 'Calibri'])

Set Name

Set Name




Tags:

access:  public


Parameters:

string   $pValue  

[ Top ]

method setSize [line 261]

void setSize( [double $pValue = 10])

Set Size

Set Size




Tags:

access:  public


Parameters:

double   $pValue  

[ Top ]

method setStriketrough [line 345]

void setStriketrough( [boolean $pValue = false])

Set Striketrough

Set Striketrough




Tags:

access:  public


Parameters:

boolean   $pValue  

[ Top ]

method setUnderline [line 324]

void setUnderline( [string $pValue = PHPExcel_Style_Font::UNDERLINE_NONE])

Set Underline

Set Underline




Tags:

access:  public


Parameters:

string   $pValue   PHPExcel_Style_Font underline type

[ Top ]

method __clone [line 395]

void __clone( )

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

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




Tags:

access:  public


[ Top ]


Class Constants

UNDERLINE_DOUBLE =  'double'

[line 47]


[ Top ]

UNDERLINE_DOUBLEACCOUNTING =  'doubleAccounting'

[line 48]


[ Top ]

UNDERLINE_NONE =  'none'

[line 46]


[ Top ]

UNDERLINE_SINGLE =  'single'

[line 49]


[ Top ]

UNDERLINE_SINGLEACCOUNTING =  'singleAccounting'

[line 50]


[ Top ]



Documentation generated on Mon, 25 Aug 2008 13:38:39 +0200 by phpDocumentor 1.4.1