Documentation

ChartColor
in package

Table of Contents

Constants

EXCEL_COLOR_TYPE_RGB  = 'srgbClr'
EXCEL_COLOR_TYPE_SCHEME  = 'schemeClr'
EXCEL_COLOR_TYPE_STANDARD  = 'prstClr'
EXCEL_COLOR_TYPES  = [self::EXCEL_COLOR_TYPE_RGB, self::EXCEL_COLOR_TYPE_SCHEME, self::EXCEL_COLOR_TYPE_STANDARD]

Properties

$alpha  : int|null
$brightness  : int|null
$type  : string
$value  : string

Methods

__construct()  : mixed
alphaFromXml()  : int
alphaToXml()  : string
getAlpha()  : int|null
getBrightness()  : int|null
getColorProperty()  : null|int|string
Get Color Property.
getType()  : string
getValue()  : string
isUsable()  : bool
setAlpha()  : self
setBrightness()  : self
setColorProperties()  : self
setColorPropertiesArray()  : self
setType()  : self
setValue()  : self

Constants

EXCEL_COLOR_TYPE_RGB

public mixed EXCEL_COLOR_TYPE_RGB = 'srgbClr'

EXCEL_COLOR_TYPE_SCHEME

public mixed EXCEL_COLOR_TYPE_SCHEME = 'schemeClr'

EXCEL_COLOR_TYPE_STANDARD

public mixed EXCEL_COLOR_TYPE_STANDARD = 'prstClr'

EXCEL_COLOR_TYPES

public mixed EXCEL_COLOR_TYPES = [self::EXCEL_COLOR_TYPE_RGB, self::EXCEL_COLOR_TYPE_SCHEME, self::EXCEL_COLOR_TYPE_STANDARD]

Properties

Methods

__construct()

public __construct([string|array<string|int, string> $value = '' ][, int|null $alpha = null ][, string|null $type = null ][, int|null $brightness = null ]) : mixed
Parameters
$value : string|array<string|int, string> = ''
$alpha : int|null = null
$type : string|null = null
$brightness : int|null = null

alphaFromXml()

public static alphaFromXml(float|int|string $alpha) : int
Parameters
$alpha : float|int|string
Return values
int

alphaToXml()

public static alphaToXml(int $alpha) : string
Parameters
$alpha : int
Return values
string

getAlpha()

public getAlpha() : int|null
Return values
int|null

getBrightness()

public getBrightness() : int|null
Return values
int|null

getColorProperty()

Get Color Property.

public getColorProperty(string $propertyName) : null|int|string
Parameters
$propertyName : string
Return values
null|int|string

getType()

public getType() : string
Return values
string

getValue()

public getValue() : string
Return values
string

isUsable()

public isUsable() : bool
Return values
bool

setAlpha()

public setAlpha(int|null $alpha) : self
Parameters
$alpha : int|null
Return values
self

setBrightness()

public setBrightness(int|null $brightness) : self
Parameters
$brightness : int|null
Return values
self

setColorProperties()

public setColorProperties(string|null $color[, null|float|int|string $alpha = null ][, string|null $type = null ][, null|float|int|string $brightness = null ]) : self
Parameters
$color : string|null
$alpha : null|float|int|string = null
$type : string|null = null
$brightness : null|float|int|string = null
Return values
self

setColorPropertiesArray()

public setColorPropertiesArray(array<string|int, mixed> $color) : self
Parameters
$color : array<string|int, mixed>
Return values
self

setType()

public setType(string $type) : self
Parameters
$type : string
Return values
self

setValue()

public setValue(string $value) : self
Parameters
$value : string
Return values
self

        
On this page

Search results