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
$alpha
private
int|null
$alpha
= null
$brightness
private
int|null
$brightness
= null
$type
private
string
$type
= ''
$value
private
string
$value
= ''
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
intalphaToXml()
public
static alphaToXml(int $alpha) : string
Parameters
- $alpha : int
Return values
stringgetAlpha()
public
getAlpha() : int|null
Return values
int|nullgetBrightness()
public
getBrightness() : int|null
Return values
int|nullgetColorProperty()
Get Color Property.
public
getColorProperty(string $propertyName) : null|int|string
Parameters
- $propertyName : string
Return values
null|int|stringgetType()
public
getType() : string
Return values
stringgetValue()
public
getValue() : string
Return values
stringisUsable()
public
isUsable() : bool
Return values
boolsetAlpha()
public
setAlpha(int|null $alpha) : self
Parameters
- $alpha : int|null
Return values
selfsetBrightness()
public
setBrightness(int|null $brightness) : self
Parameters
- $brightness : int|null
Return values
selfsetColorProperties()
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
selfsetColorPropertiesArray()
public
setColorPropertiesArray(array<string|int, mixed> $color) : self
Parameters
- $color : array<string|int, mixed>
Return values
selfsetType()
public
setType(string $type) : self
Parameters
- $type : string
Return values
selfsetValue()
public
setValue(string $value) : self
Parameters
- $value : string