Shadow
in package
implements
ComparableInterface
\PhpOffice\PhpPresentation\Style\Shadow.
Table of Contents
Interfaces
- ComparableInterface
- PhpOffice\PhpPresentation\ComparableInterface.
Constants
- SHADOW_BOTTOM = 'b'
- SHADOW_BOTTOM_LEFT = 'bl'
- SHADOW_BOTTOM_RIGHT = 'br'
- SHADOW_CENTER = 'ctr'
- SHADOW_LEFT = 'l'
- SHADOW_TOP = 't'
- SHADOW_TOP_LEFT = 'tl'
- SHADOW_TOP_RIGHT = 'tr'
- TYPE_REFLECTION = 'reflection'
- TYPE_SHADOW_INNER = 'innerShdw'
- TYPE_SHADOW_OUTER = 'outerShdw'
Properties
- $alignment : string
- Shadow alignment.
- $alpha : int
- $blurRadius : int
- Blur radius.
- $color : null|Color
- $direction : int
- Shadow direction (in degrees).
- $distance : int
- Shadow distance.
- $hashIndex : int
- Hash index.
- $type : string
- $visible : bool
- Visible.
Methods
- __construct() : mixed
- Create a new \PhpOffice\PhpPresentation\Style\Shadow.
- getAlignment() : string
- Get Shadow alignment.
- getAlpha() : int
- Get Alpha.
- getBlurRadius() : int
- Get Blur radius.
- getColor() : Color|null
- Get Color.
- getDirection() : int
- Get Shadow direction (in degrees).
- getDistance() : int
- Get Shadow distance.
- getHashCode() : string
- Get hash code.
- getHashIndex() : null|int
- Get hash index.
- getType() : string
- Get Type.
- isVisible() : bool
- Get Visible.
- setAlignment() : self
- Set Shadow alignment.
- setAlpha() : self
- Set Alpha.
- setBlurRadius() : self
- Set Blur radius.
- setColor() : self
- Set Color.
- setDirection() : self
- Set Shadow direction (in degrees).
- setDistance() : $this
- Set Shadow distance.
- setHashIndex() : $this
- Set hash index.
- setType() : self
- Set Type.
- setVisible() : self
- Set Visible.
Constants
SHADOW_BOTTOM
public
mixed
SHADOW_BOTTOM
= 'b'
SHADOW_BOTTOM_LEFT
public
mixed
SHADOW_BOTTOM_LEFT
= 'bl'
SHADOW_BOTTOM_RIGHT
public
mixed
SHADOW_BOTTOM_RIGHT
= 'br'
SHADOW_CENTER
public
mixed
SHADOW_CENTER
= 'ctr'
SHADOW_LEFT
public
mixed
SHADOW_LEFT
= 'l'
SHADOW_TOP
public
mixed
SHADOW_TOP
= 't'
SHADOW_TOP_LEFT
public
mixed
SHADOW_TOP_LEFT
= 'tl'
SHADOW_TOP_RIGHT
public
mixed
SHADOW_TOP_RIGHT
= 'tr'
TYPE_REFLECTION
public
mixed
TYPE_REFLECTION
= 'reflection'
TYPE_SHADOW_INNER
public
mixed
TYPE_SHADOW_INNER
= 'innerShdw'
TYPE_SHADOW_OUTER
public
mixed
TYPE_SHADOW_OUTER
= 'outerShdw'
Properties
$alignment
Shadow alignment.
private
string
$alignment
= self::SHADOW_BOTTOM_RIGHT
$alpha
private
int
$alpha
= 50
$blurRadius
Blur radius.
private
int
$blurRadius
= 6
$color
private
null|Color
$color
$direction
Shadow direction (in degrees).
private
int
$direction
= 0
$distance
Shadow distance.
private
int
$distance
= 2
$hashIndex
Hash index.
private
int
$hashIndex
$type
private
string
$type
= self::TYPE_SHADOW_OUTER
$visible
Visible.
private
bool
$visible
= false
Methods
__construct()
Create a new \PhpOffice\PhpPresentation\Style\Shadow.
public
__construct() : mixed
getAlignment()
Get Shadow alignment.
public
getAlignment() : string
Return values
stringgetAlpha()
Get Alpha.
public
getAlpha() : int
Return values
intgetBlurRadius()
Get Blur radius.
public
getBlurRadius() : int
Return values
intgetColor()
Get Color.
public
getColor() : Color|null
Return values
Color|nullgetDirection()
Get Shadow direction (in degrees).
public
getDirection() : int
Return values
intgetDistance()
Get Shadow distance.
public
getDistance() : int
Return values
intgetHashCode()
Get hash code.
public
getHashCode() : string
Return values
string —Hash code
getHashIndex()
Get hash index.
public
getHashIndex() : null|int
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.
Return values
null|int —Hash index
getType()
Get Type.
public
getType() : string
Return values
stringisVisible()
Get Visible.
public
isVisible() : bool
Return values
boolsetAlignment()
Set Shadow alignment.
public
setAlignment([string $pValue = self::SHADOW_BOTTOM_RIGHT ]) : self
Parameters
- $pValue : string = self::SHADOW_BOTTOM_RIGHT
Return values
selfsetAlpha()
Set Alpha.
public
setAlpha([int $pValue = 0 ]) : self
Parameters
- $pValue : int = 0
Return values
selfsetBlurRadius()
Set Blur radius.
public
setBlurRadius([int $pValue = 6 ]) : self
Parameters
- $pValue : int = 6
Return values
selfsetColor()
Set Color.
public
setColor([Color|null $pValue = null ]) : self
Parameters
- $pValue : Color|null = null
Return values
selfsetDirection()
Set Shadow direction (in degrees).
public
setDirection([int $pValue = 0 ]) : self
Parameters
- $pValue : int = 0
Return values
selfsetDistance()
Set Shadow distance.
public
setDistance([int $pValue = 2 ]) : $this
Parameters
- $pValue : int = 2
Return values
$thissetHashIndex()
Set hash index.
public
setHashIndex(int $value) : $this
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.
Parameters
- $value : int
-
Hash index
Return values
$thissetType()
Set Type.
public
setType([string $pValue = self::TYPE_SHADOW_OUTER ]) : self
Parameters
- $pValue : string = self::TYPE_SHADOW_OUTER
Return values
selfsetVisible()
Set Visible.
public
setVisible([bool $pValue = false ]) : self
Parameters
- $pValue : bool = false