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

Class: PHPExcel_Style_Color

Source Location: /PHPExcel/Style/Color.php

Class Overview


PHPExcel_Style_Color


Author(s):

Copyright:

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

Implements interfaces:

Variables

Constants

Methods



Class Details

[line 40]
PHPExcel_Style_Color

PHPExcel_Style_Color




Tags:

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


[ Top ]


Class Variables

static $_indexedColors =

[line 59]

Indexed colors array

Indexed colors array




Tags:

access:  private

Type:   array


[ Top ]

$_argb =

[line 66]

ARGB - Alpha RGB

ARGB - Alpha RGB




Tags:

access:  private

Type:   string


[ Top ]

$_hashIndex =

[line 247]

Hash index

Hash index




Tags:

access:  private

Type:   string


[ Top ]



Class Methods


static method indexedColor [line 150]

static PHPExcel_Style_Color indexedColor( int $pIndex)

Get indexed color

Get indexed color




Tags:

access:  public


Parameters:

int   $pIndex  

[ Top ]

method applyFromArray [line 89]

void applyFromArray( [array $pStyles = null])

Apply styles from array

Apply styles from array

  1.  $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArrayarray('rgb' => '808080') );




Tags:

throws:  Exception
access:  public


Parameters:

array   $pStyles   Array containing style information

[ Top ]

constructor __construct [line 73]

PHPExcel_Style_Color __construct( [string $pARGB = PHPExcel_Style_Color::COLOR_BLACK])

Create a new PHPExcel_Style_Color

Create a new PHPExcel_Style_Color




Tags:

access:  public


Parameters:

string   $pARGB  

[ Top ]

method getARGB [line 107]

string getARGB( )

Get ARGB

Get ARGB




Tags:

access:  public


[ Top ]

method getHashCode [line 235]

string getHashCode( )

Get hash code

Get hash code




Tags:

return:  Hash code
access:  public


[ Top ]

method getHashIndex [line 257]

string getHashIndex( )

Get hash index Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.

Get hash index Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.




Tags:

return:  Hash index
access:  public


[ Top ]

method getRGB [line 128]

string getRGB( )

Get RGB

Get RGB




Tags:

access:  public


[ Top ]

method setARGB [line 116]

void setARGB( [string $pValue = PHPExcel_Style_Color::COLOR_BLACK])

Set ARGB

Set ARGB




Tags:

access:  public


Parameters:

string   $pValue  

[ Top ]

method setHashIndex [line 269]

void setHashIndex( string $value)

Set hash index Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.

Set hash index Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.




Tags:

access:  public


Parameters:

string   $value   Hash index

[ Top ]

method setRGB [line 137]

void setRGB( [string $pValue = '000000'])

Set RGB

Set RGB




Tags:

access:  public


Parameters:

string   $pValue  

[ Top ]

method __clone [line 276]

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

COLOR_BLACK =  'FF000000'

[line 43]


[ Top ]

COLOR_BLUE =  'FF0000FF'

[line 47]


[ Top ]

COLOR_DARKBLUE =  'FF000080'

[line 48]


[ Top ]

COLOR_DARKGREEN =  'FF008000'

[line 50]


[ Top ]

COLOR_DARKRED =  'FF800000'

[line 46]


[ Top ]

COLOR_DARKYELLOW =  'FF808000'

[line 52]


[ Top ]

COLOR_GREEN =  'FF00FF00'

[line 49]


[ Top ]

COLOR_RED =  'FFFF0000'

[line 45]


[ Top ]

COLOR_WHITE =  'FFFFFFFF'

[line 44]


[ Top ]

COLOR_YELLOW =  'FFFFFF00'

[line 51]


[ Top ]



Documentation generated on Wed, 22 Apr 2009 08:56:39 +0200 by phpDocumentor 1.4.1