PHP Класс PhpOffice\PhpPresentation\Style\Color

Наследование: implements PhpOffice\PhpPresentation\ComparableInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

getARGB() публичный Метод

Get ARGB
public getARGB ( ) : string
Результат string

getAlpha() публичный Метод

Get the alpha % of the ARGB Will return 100 if no ARGB
public getAlpha ( ) : integer
Результат integer

getHashCode() публичный Метод

Get hash code
public getHashCode ( ) : string
Результат string Hash code

getHashIndex() публичный Метод

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
Результат string Hash index

getRGB() публичный Метод

Get RGB
public getRGB ( ) : string
Результат string

setARGB() публичный Метод

Set ARGB
public setARGB ( string $pValue = self::COLOR_BLACK ) : Color
$pValue string
Результат Color

setHashIndex() публичный Метод

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() публичный Метод

Set RGB
public setRGB ( string $pValue = '000000' ) : Color
$pValue string
Результат Color