PHPExcel_Style_Color
| category | PHPExcel |
|---|---|
| package | PHPExcel_Style |
| copyright | Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) |
__clone()
| inherited_from | \PHPExcel_Style_Supervisor::__clone() |
|---|
__construct(string $pARGB, boolean $isSupervisor, boolean $isConditional)
stringARGB value for the colour
booleanFlag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are
booleanFlag 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') );
arrayArray 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
stringThe colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)
floatThe percentage by which to adjust the colour as a float from -1 to 1
stringThe adjusted colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE)getARGB() : string
stringgetActiveCell() : string
Only used for supervisor
| inherited_from | \PHPExcel_Style_Supervisor::getActiveCell() |
|---|
stringE.g. 'A1'getActiveSheet() : \PHPExcel_Worksheet
Only used for supervisor
| inherited_from | \PHPExcel_Style_Supervisor::getActiveSheet() |
|---|
getBlue(string $RGB, boolean $hex) : string
stringThe colour as an RGB value (e.g. FF00CCCC or CCDDEE
booleanFlag indicating whether the component should be returned as a hex or a decimal value
stringThe blue colour componentgetGreen(string $RGB, boolean $hex) : string
stringThe colour as an RGB value (e.g. FF00CCCC or CCDDEE
booleanFlag indicating whether the component should be returned as a hex or a decimal value
stringThe green colour componentgetHashCode() : string
stringHash codegetIsSupervisor() : boolean
| inherited_from | \PHPExcel_Style_Supervisor::getIsSupervisor() |
|---|
booleangetRGB() : string
stringgetRed(string $RGB, boolean $hex) : string
stringThe colour as an RGB value (e.g. FF00CCCC or CCDDEE
booleanFlag indicating whether the component should be returned as a hex or a decimal value
stringThe red colour componentgetSelectedCells() : string
Only used for supervisor
| inherited_from | \PHPExcel_Style_Supervisor::getSelectedCells() |
|---|
stringE.g. 'A1'getSharedComponent() : \PHPExcel_Style_Color
getStyleArray(array $array) : array
array
arrayindexedColor(int $pIndex, boolean $background) : \PHPExcel_Style_Color
intIndex entry point into the colour array
booleanFlag 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 |
|---|
stringThe colour as an RGB value (e.g. FF00CCCC or CCDDEE
intPosition within the RGB value to extract
booleanFlag indicating whether the component should be returned as a hex or a decimal value
stringThe 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