\PhpOffice\PhpSpreadsheetNamedRange

Summary

Methods
Properties
Constants
__construct()
getName()
setName()
getWorksheet()
setWorksheet()
getRange()
setRange()
getLocalOnly()
setLocalOnly()
getScope()
setScope()
resolveRange()
__clone()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$name
$worksheet
$range
$localOnly
$scope
N/A

Properties

$name

$name : string

Range name.

Type

string

$range

$range : string

Range of the referenced cells.

Type

string

$localOnly

$localOnly : boolean

Is the named range local? (i.e. can only be used on $this->worksheet).

Type

boolean

Methods

__construct()

__construct(string  $pName, \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet  $pWorksheet, string  $pRange = 'A1', boolean  $pLocalOnly = false, null|\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet  $pScope = null) 

Create a new NamedRange.

Parameters

string $pName
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pWorksheet
string $pRange
boolean $pLocalOnly
null|\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pScope

Scope. Only applies when $pLocalOnly = true. Null for global scope.

Throws

\PhpOffice\PhpSpreadsheet\Exception

getName()

getName() : string

Get name.

Returns

string

getRange()

getRange() : string

Get range.

Returns

string

getLocalOnly()

getLocalOnly() : boolean

Get localOnly.

Returns

boolean

__clone()

__clone() 

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