PHPExcel_Style_Color
category | PHPExcel |
---|---|
package | PHPExcel_Style |
copyright | Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
__clone()
inherited_from | \PHPExcel_Style_Supervisor::__clone() |
---|
__construct(string $pARGB, boolean $isSupervisor, boolean $isConditional)
string
ARGB value for the colour
boolean
Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are
boolean
Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are
applyFromArray(array $pStyles) : \PHPExcel_Style_Color
$objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') );
array
Array containing style information
\PHPExcel_Exception |
---|
bindParent(mixed $parent, string $parentPropertyName) : \PHPExcel_Style_Color
Only used for supervisor
mixed
string
changeBrightness(string $hex, float $adjustPercentage) : string
string
The colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)
float
The percentage by which to adjust the colour as a float from -1 to 1
string
The adjusted colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)getARGB() : string
string
getActiveCell() : string
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getActiveCell() |
---|
string
E.g. 'A1'getActiveSheet() : \PHPExcel_Worksheet
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getActiveSheet() |
---|
getBlue(string $RGB, boolean $hex) : string
string
The colour as an RGB value (e.g. FF00CCCC or CCDDEE
boolean
Flag indicating whether the component should be returned as a hex or a decimal value
string
The blue colour componentgetGreen(string $RGB, boolean $hex) : string
string
The colour as an RGB value (e.g. FF00CCCC or CCDDEE
boolean
Flag indicating whether the component should be returned as a hex or a decimal value
string
The green colour componentgetHashCode() : string
string
Hash codegetIsSupervisor() : boolean
inherited_from | \PHPExcel_Style_Supervisor::getIsSupervisor() |
---|
boolean
getRGB() : string
string
getRed(string $RGB, boolean $hex) : string
string
The colour as an RGB value (e.g. FF00CCCC or CCDDEE
boolean
Flag indicating whether the component should be returned as a hex or a decimal value
string
The red colour componentgetSelectedCells() : string
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::getSelectedCells() |
---|
string
E.g. 'A1'getSharedComponent() : \PHPExcel_Style_Color
getStyleArray(array $array) : array
array
array
indexedColor(int $pIndex, boolean $background) : \PHPExcel_Style_Color
int
Index entry point into the colour array
boolean
Flag to indicate whether default background or foreground colour should be returned if the indexed colour doesn't exist
_getColourComponent(string $RGB, int $offset, boolean $hex) : string
private |
---|
string
The colour as an RGB value (e.g. FF00CCCC or CCDDEE
int
Position within the RGB value to extract
boolean
Flag indicating whether the component should be returned as a hex or a decimal value
string
The extracted colour component$_argb : string
$_indexedColors : array
$_isSupervisor : boolean
inherited_from | \PHPExcel_Style_Supervisor::$$_isSupervisor |
---|
$_parent : \PHPExcel_Style
Only used for supervisor
inherited_from | \PHPExcel_Style_Supervisor::$$_parent |
---|
$_parentPropertyName : string
COLOR_BLACK
COLOR_BLUE
COLOR_DARKBLUE
COLOR_DARKGREEN
COLOR_DARKRED
COLOR_DARKYELLOW
COLOR_GREEN
COLOR_RED
COLOR_WHITE
COLOR_YELLOW