Documentation

Row
in package
implements ComparableInterface

Table row.

Table of Contents

Interfaces

ComparableInterface
PhpOffice\PhpPresentation\ComparableInterface.

Properties

$activeCellIndex  : int
Active cell index.
$cells  : array<string|int, Cell>
Cells.
$fill  : Fill
Fill.
$hashIndex  : int
Hash index.
$height  : int
Height (in pixels).

Methods

__construct()  : mixed
getCell()  : Cell
Get cell.
getCells()  : array<string|int, Cell>
Get cells.
getFill()  : Fill
Get fill.
getHashCode()  : string
Get hash code.
getHashIndex()  : null|int
Get hash index.
getHeight()  : int
Get height.
hasCell()  : bool
Get cell.
nextCell()  : Cell
Next cell (moves one cell to the right).
setFill()  : self
Set fill.
setHashIndex()  : $this
Set hash index.
setHeight()  : self
Set height.

Properties

$activeCellIndex

Active cell index.

private int $activeCellIndex = -1

$cells

Cells.

private array<string|int, Cell> $cells = []

$hashIndex

Hash index.

private int $hashIndex

$height

Height (in pixels).

private int $height = 38

Methods

__construct()

public __construct([int $columns = 1 ]) : mixed
Parameters
$columns : int = 1

Number of columns

getCell()

Get cell.

public getCell([int $cell = 0 ]) : Cell
Parameters
$cell : int = 0

Cell number

Return values
Cell

getCells()

Get cells.

public getCells() : array<string|int, Cell>
Return values
array<string|int, Cell>

getFill()

Get fill.

public getFill() : Fill
Return values
Fill

getHashCode()

Get hash code.

public getHashCode() : string
Return values
string

Hash code

getHashIndex()

Get hash index.

public getHashIndex() : null|int

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.

Return values
null|int

Hash index

getHeight()

Get height.

public getHeight() : int
Return values
int

hasCell()

Get cell.

public hasCell(int $cell) : bool
Parameters
$cell : int

Cell number

Return values
bool

nextCell()

Next cell (moves one cell to the right).

public nextCell() : Cell
Return values
Cell

setFill()

Set fill.

public setFill(Fill $fill) : self
Parameters
$fill : Fill
Return values
self

setHashIndex()

Set hash index.

public setHashIndex(int $value) : $this

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.

Parameters
$value : int

Hash index

Return values
$this

setHeight()

Set height.

public setHeight([int $value = 0 ]) : self
Parameters
$value : int = 0
Return values
self

        
On this page

Search results