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
= []
$fill
Fill.
private
Fill
$fill
$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
CellgetCells()
Get cells.
public
getCells() : array<string|int, Cell>
Return values
array<string|int, Cell>getFill()
Get fill.
public
getFill() : Fill
Return values
FillgetHashCode()
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
inthasCell()
Get cell.
public
hasCell(int $cell) : bool
Parameters
- $cell : int
-
Cell number
Return values
boolnextCell()
Next cell (moves one cell to the right).
public
nextCell() : Cell
Return values
CellsetFill()
Set fill.
public
setFill(Fill $fill) : self
Parameters
- $fill : Fill
Return values
selfsetHashIndex()
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
$thissetHeight()
Set height.
public
setHeight([int $value = 0 ]) : self
Parameters
- $value : int = 0