RowDimension
extends Dimension
in package
Table of Contents
Properties
- $collapsed : bool
- Collapsed.
- $height : float
- Row height (in pt).
- $outlineLevel : int
- Outline level.
- $rowIndex : int|null
- Row index.
- $visible : bool
- Visible?
- $xfIndex : int|null
- Index to cellXf. Null value means row has no explicit cellXf format.
- $zeroHeight : bool
- ZeroHeight for Row?
Methods
- __construct() : mixed
- Create a new RowDimension.
- getCollapsed() : bool
- Get Collapsed.
- getOutlineLevel() : int
- Get Outline Level.
- getRowHeight() : float
- Get Row Height.
- getRowIndex() : int|null
- Get Row Index.
- getVisible() : bool
- Get Visible.
- getXfIndex() : int|null
- Get index to cellXf.
- getZeroHeight() : bool
- Get ZeroHeight.
- setCollapsed() : $this
- Set Collapsed.
- setOutlineLevel() : $this
- Set Outline Level.
- setRowHeight() : $this
- Set Row Height.
- setRowIndex() : $this
- Set Row Index.
- setVisible() : $this
- Set Visible.
- setXfIndex() : $this
- Set index to cellXf.
- setZeroHeight() : $this
- Set ZeroHeight.
Properties
$collapsed
Collapsed.
private
bool
$collapsed
= false
$height
Row height (in pt).
private
float
$height
= -1
When this is set to a negative value, the row height should be ignored by IWriter
$outlineLevel
Outline level.
private
int
$outlineLevel
= 0
$rowIndex
Row index.
private
int|null
$rowIndex
$visible
Visible?
private
bool
$visible
= true
$xfIndex
Index to cellXf. Null value means row has no explicit cellXf format.
private
int|null
$xfIndex
$zeroHeight
ZeroHeight for Row?
private
bool
$zeroHeight
= false
Methods
__construct()
Create a new RowDimension.
public
__construct([int|null $index = 0 ]) : mixed
Parameters
- $index : int|null = 0
-
Numeric row index
getCollapsed()
Get Collapsed.
public
getCollapsed() : bool
Return values
boolgetOutlineLevel()
Get Outline Level.
public
getOutlineLevel() : int
Return values
intgetRowHeight()
Get Row Height.
public
getRowHeight([string|null $unitOfMeasure = null ]) : float
By default, this will be in points; but this method also accepts an optional unit of measure argument, and will convert the value from points to the specified UoM. A value of -1 tells Excel to display this column in its default height.
Parameters
- $unitOfMeasure : string|null = null
Return values
floatgetRowIndex()
Get Row Index.
public
getRowIndex() : int|null
Return values
int|nullgetVisible()
Get Visible.
public
getVisible() : bool
Return values
boolgetXfIndex()
Get index to cellXf.
public
getXfIndex() : int|null
Return values
int|nullgetZeroHeight()
Get ZeroHeight.
public
getZeroHeight() : bool
Return values
boolsetCollapsed()
Set Collapsed.
public
setCollapsed(bool $collapsed) : $this
Parameters
- $collapsed : bool
Return values
$thissetOutlineLevel()
Set Outline Level.
public
setOutlineLevel(int $level) : $this
Value must be between 0 and 7.
Parameters
- $level : int
Return values
$thissetRowHeight()
Set Row Height.
public
setRowHeight(float $height[, string|null $unitOfMeasure = null ]) : $this
Parameters
- $height : float
-
in points. A value of -1 tells Excel to display this column in its default height. By default, this will be the passed argument value; but this method also accepts an optional unit of measure argument, and will convert the passed argument value to points from the specified UoM
- $unitOfMeasure : string|null = null
Return values
$thissetRowIndex()
Set Row Index.
public
setRowIndex(int $index) : $this
Parameters
- $index : int
Return values
$thissetVisible()
Set Visible.
public
setVisible(bool $visible) : $this
Parameters
- $visible : bool
Return values
$thissetXfIndex()
Set index to cellXf.
public
setXfIndex(int $XfIndex) : $this
Parameters
- $XfIndex : int
Return values
$thissetZeroHeight()
Set ZeroHeight.
public
setZeroHeight(bool $zeroHeight) : $this
Parameters
- $zeroHeight : bool