\PhpOffice\PhpSpreadsheet\WorksheetPageMargins

Summary

Methods
Properties
Constants
__construct()
getLeft()
setLeft()
getRight()
setRight()
getTop()
setTop()
getBottom()
setBottom()
getHeader()
setHeader()
getFooter()
setFooter()
__clone()
fromCentimeters()
toCentimeters()
fromMillimeters()
toMillimeters()
fromPoints()
toPoints()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$left
$right
$top
$bottom
$header
$footer
N/A

Properties

$left

$left : float

Left.

Type

float

$right

$right : float

Right.

Type

float

$top

$top : float

Top.

Type

float

$bottom

$bottom : float

Bottom.

Type

float

$header

$header : float

Header.

Type

float

$footer

$footer : float

Footer.

Type

float

Methods

__construct()

__construct() : mixed

Create a new PageMargins.

Returns

mixed —

getLeft()

getLeft() : float

Get Left.

Returns

float —

setLeft()

setLeft(float  $pValue) : $this

Set Left.

Parameters

float $pValue

Returns

$this —

getRight()

getRight() : float

Get Right.

Returns

float —

setRight()

setRight(float  $pValue) : $this

Set Right.

Parameters

float $pValue

Returns

$this —

getTop()

getTop() : float

Get Top.

Returns

float —

setTop()

setTop(float  $pValue) : $this

Set Top.

Parameters

float $pValue

Returns

$this —

getBottom()

getBottom() : float

Get Bottom.

Returns

float —

setBottom()

setBottom(float  $pValue) : $this

Set Bottom.

Parameters

float $pValue

Returns

$this —

getHeader()

getHeader() : float

Get Header.

Returns

float —

setHeader()

setHeader(float  $pValue) : $this

Set Header.

Parameters

float $pValue

Returns

$this —

getFooter()

getFooter() : float

Get Footer.

Returns

float —

setFooter()

setFooter(float  $pValue) : $this

Set Footer.

Parameters

float $pValue

Returns

$this —

__clone()

__clone() : mixed

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

Returns

mixed —

fromCentimeters()

fromCentimeters(float  $value) : float

Parameters

float $value

Returns

float —

toCentimeters()

toCentimeters(float  $value) : float

Parameters

float $value

Returns

float —

fromMillimeters()

fromMillimeters(float  $value) : float

Parameters

float $value

Returns

float —

toMillimeters()

toMillimeters(float  $value) : float

Parameters

float $value

Returns

float —

fromPoints()

fromPoints(float  $value) : float

Parameters

float $value

Returns

float —

toPoints()

toPoints(float  $value) : float

Parameters

float $value

Returns

float —