Properties

$name

$name : string

Name.

Type

string

$description

$description : string

Description.

Type

string

$coordinates

$coordinates : string

Coordinates.

Type

string

$offsetX

$offsetX : integer

Offset X.

Type

integer

$offsetY

$offsetY : integer

Offset Y.

Type

integer

$width

$width : integer

Width.

Type

integer

$height

$height : integer

Height.

Type

integer

$resizeProportional

$resizeProportional : boolean

Proportional resize.

Type

boolean

$rotation

$rotation : integer

Rotation.

Type

integer

$imageCounter

$imageCounter : integer

Image counter.

Type

integer

$imageIndex

$imageIndex : integer

Image index.

Type

integer

Methods

__construct()

__construct() 

Create a new BaseDrawing.

getImageIndex()

getImageIndex() : integer

Get image index.

Returns

integer

getName()

getName() : string

Get Name.

Returns

string

getDescription()

getDescription() : string

Get Description.

Returns

string

setWorksheet()

setWorksheet(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet  $pValue = null, boolean  $pOverrideOld = false) : \PhpOffice\PhpSpreadsheet\Worksheet\BaseDrawing

Set Worksheet.

Parameters

\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pValue
boolean $pOverrideOld

If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet?

Throws

\PhpOffice\PhpSpreadsheet\Exception

Returns

\PhpOffice\PhpSpreadsheet\Worksheet\BaseDrawing

getCoordinates()

getCoordinates() : string

Get Coordinates.

Returns

string

getOffsetX()

getOffsetX() : integer

Get OffsetX.

Returns

integer

getOffsetY()

getOffsetY() : integer

Get OffsetY.

Returns

integer

getWidth()

getWidth() : integer

Get Width.

Returns

integer

getHeight()

getHeight() : integer

Get Height.

Returns

integer

setWidthAndHeight()

setWidthAndHeight(integer  $width, integer  $height) : \PhpOffice\PhpSpreadsheet\Worksheet\BaseDrawing

Set width and height with proportional resize.

Example: $objDrawing->setResizeProportional(true); $objDrawing->setWidthAndHeight(160,120);

Parameters

integer $width
integer $height

Returns

\PhpOffice\PhpSpreadsheet\Worksheet\BaseDrawing

getResizeProportional()

getResizeProportional() : boolean

Get ResizeProportional.

Returns

boolean

getRotation()

getRotation() : integer

Get Rotation.

Returns

integer

getHashCode()

getHashCode() : string

Get hash code.

Returns

string —

Hash code

__clone()

__clone() 

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