\PhpOffice\PhpSpreadsheet\CellAddressHelper

Summary

Methods
Properties
Constants
convertToA1()
convertFormulaToA1()
convertToR1C1()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

convertToA1()

convertToA1(string  $address, int  $currentRowNumber = 1, int  $currentColumnNumber = 1) : string

Converts an R1C1 format cell address to an A1 format cell address.

Parameters

string $address
int $currentRowNumber
int $currentColumnNumber

Returns

string —

convertFormulaToA1()

convertFormulaToA1(string  $formula, int  $currentRowNumber = 1, int  $currentColumnNumber = 1) : string

Converts a formula that uses R1C1 format cell address to an A1 format cell address.

Parameters

string $formula
int $currentRowNumber
int $currentColumnNumber

Returns

string —

convertToR1C1()

convertToR1C1(string  $address, ?int  $currentRowNumber = null, ?int  $currentColumnNumber = null) : string

Converts an A1 format cell address to an R1C1 format cell address.

If $currentRowNumber or $currentColumnNumber are provided, then the R1C1 address will be formatted as a relative address.

Parameters

string $address
?int $currentRowNumber
?int $currentColumnNumber

Returns

string —