Constants

SHADOW_BOTTOM

SHADOW_BOTTOM = 'b'

SHADOW_BOTTOM_LEFT

SHADOW_BOTTOM_LEFT = 'bl'

SHADOW_BOTTOM_RIGHT

SHADOW_BOTTOM_RIGHT = 'br'

SHADOW_CENTER

SHADOW_CENTER = 'ctr'

SHADOW_LEFT

SHADOW_LEFT = 'l'

SHADOW_TOP_LEFT

SHADOW_TOP_LEFT = 'tl'

SHADOW_TOP_RIGHT

SHADOW_TOP_RIGHT = 'tr'

Properties

$visible

$visible : bool

Visible.

Type

bool

$blurRadius

$blurRadius : int

Blur radius.

Defaults to 6

Type

int

$distance

$distance : int

Shadow distance.

Defaults to 2

Type

int

$direction

$direction : int

Shadow direction (in degrees).

Type

int

$alignment

$alignment : int

Shadow alignment.

Type

int

$color

$color : \PhpOffice\PhpSpreadsheet\Style\Color

Color.

Type

Color

$alpha

$alpha : int

Alpha.

Type

int

Methods

__construct()

__construct() : mixed

Create a new Shadow.

Returns

mixed —

getVisible()

getVisible() : bool

Get Visible.

Returns

bool —

setVisible()

setVisible(bool  $pValue) : $this

Set Visible.

Parameters

bool $pValue

Returns

$this —

getBlurRadius()

getBlurRadius() : int

Get Blur radius.

Returns

int —

setBlurRadius()

setBlurRadius(int  $pValue) : $this

Set Blur radius.

Parameters

int $pValue

Returns

$this —

getDistance()

getDistance() : int

Get Shadow distance.

Returns

int —

setDistance()

setDistance(int  $pValue) : $this

Set Shadow distance.

Parameters

int $pValue

Returns

$this —

getDirection()

getDirection() : int

Get Shadow direction (in degrees).

Returns

int —

setDirection()

setDirection(int  $pValue) : $this

Set Shadow direction (in degrees).

Parameters

int $pValue

Returns

$this —

getAlignment()

getAlignment() : int

Get Shadow alignment.

Returns

int —

setAlignment()

setAlignment(int  $pValue) : $this

Set Shadow alignment.

Parameters

int $pValue

Returns

$this —

getColor()

getColor() : \PhpOffice\PhpSpreadsheet\Style\Color

Get Color.

Returns

\PhpOffice\PhpSpreadsheet\Style\Color —

setColor()

setColor(\PhpOffice\PhpSpreadsheet\Style\Color  $pValue = null) : $this

Set Color.

Parameters

\PhpOffice\PhpSpreadsheet\Style\Color $pValue

Returns

$this —

getAlpha()

getAlpha() : int

Get Alpha.

Returns

int —

setAlpha()

setAlpha(int  $pValue) : $this

Set Alpha.

Parameters

int $pValue

Returns

$this —

getHashCode()

getHashCode() : string

Get hash code.

Returns

string —

Hash code

__clone()

__clone() : mixed

Implement PHP __clone to create a deep clone, not just a shallow copy.

Returns

mixed —