PHP Class PhpOffice\PhpPresentation\Style\Color

Inheritance: implements PhpOffice\PhpPresentation\ComparableInterface
Datei anzeigen Open project: phpoffice/phppowerpoint Class Usage Examples

Public Methods

Method Description
__construct ( string $pARGB = self::COLOR_BLACK ) Create a new \PhpOffice\PhpPresentation\Style\Color
getARGB ( ) : string Get ARGB
getAlpha ( ) : integer Get the alpha % of the ARGB Will return 100 if no ARGB
getHashCode ( ) : string Get hash code
getHashIndex ( ) : string Get hash index
getRGB ( ) : string Get RGB
setARGB ( string $pValue = self::COLOR_BLACK ) : Color Set ARGB
setHashIndex ( string $value ) Set hash index
setRGB ( string $pValue = '000000' ) : Color Set RGB

Method Details

__construct() public method

Create a new \PhpOffice\PhpPresentation\Style\Color
public __construct ( string $pARGB = self::COLOR_BLACK )
$pARGB string

getARGB() public method

Get ARGB
public getARGB ( ) : string
return string

getAlpha() public method

Get the alpha % of the ARGB Will return 100 if no ARGB
public getAlpha ( ) : integer
return integer

getHashCode() public method

Get hash code
public getHashCode ( ) : string
return string Hash code

getHashIndex() public method

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.
public getHashIndex ( ) : string
return string Hash index

getRGB() public method

Get RGB
public getRGB ( ) : string
return string

setARGB() public method

Set ARGB
public setARGB ( string $pValue = self::COLOR_BLACK ) : Color
$pValue string
return Color

setHashIndex() public method

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.
public setHashIndex ( string $value )
$value string Hash index

setRGB() public method

Set RGB
public setRGB ( string $pValue = '000000' ) : Color
$pValue string
return Color