ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Worksheet\RowDimension Class Reference
+ Inheritance diagram for PhpOffice\PhpSpreadsheet\Worksheet\RowDimension:
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Worksheet\RowDimension:

Public Member Functions

 __construct ($pIndex=0)
 Create a new RowDimension. More...
 
 getRowIndex ()
 Get Row Index. More...
 
 setRowIndex (int $index)
 Set Row Index. More...
 
 getRowHeight ()
 Get Row Height. More...
 
 setRowHeight ($height)
 Set Row Height. More...
 
 getZeroHeight ()
 Get ZeroHeight. More...
 
 setZeroHeight (bool $pValue)
 Set ZeroHeight. More...
 
- Public Member Functions inherited from PhpOffice\PhpSpreadsheet\Worksheet\Dimension
 __construct ($initialValue=null)
 Create a new Dimension. More...
 
 getVisible ()
 Get Visible. More...
 
 setVisible (bool $visible)
 Set Visible. More...
 
 getOutlineLevel ()
 Get Outline Level. More...
 
 setOutlineLevel (int $level)
 Set Outline Level. More...
 
 getCollapsed ()
 Get Collapsed. More...
 
 setCollapsed (bool $collapsed)
 Set Collapsed. More...
 
 getXfIndex ()
 Get index to cellXf. More...
 
 setXfIndex (int $pValue)
 Set index to cellXf. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $rowIndex
 
 $height = -1
 
 $zeroHeight = false
 

Detailed Description

Definition at line 5 of file RowDimension.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::__construct (   $pIndex = 0)

Create a new RowDimension.

Parameters
int$pIndexNumeric row index

Definition at line 35 of file RowDimension.php.

36  {
37  // Initialise values
38  $this->rowIndex = $pIndex;
39 
40  // set dimension as unformatted by default
41  parent::__construct(null);
42  }

Member Function Documentation

◆ getRowHeight()

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::getRowHeight ( )

Get Row Height.

Returns
float

Definition at line 69 of file RowDimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\RowDimension\$height.

◆ getRowIndex()

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::getRowIndex ( )

Get Row Index.

Definition at line 47 of file RowDimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\RowDimension\$rowIndex.

47  : int
48  {
49  return $this->rowIndex;
50  }

◆ getZeroHeight()

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::getZeroHeight ( )

Get ZeroHeight.

Definition at line 91 of file RowDimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\RowDimension\$zeroHeight.

91  : bool
92  {
93  return $this->zeroHeight;
94  }

◆ setRowHeight()

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::setRowHeight (   $height)

Set Row Height.

Parameters
float$height
Returns
$this

Definition at line 81 of file RowDimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\RowDimension\$height.

82  {
83  $this->height = $height;
84 
85  return $this;
86  }

◆ setRowIndex()

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::setRowIndex ( int  $index)

Set Row Index.

Returns
$this

Definition at line 57 of file RowDimension.php.

References $index.

58  {
59  $this->rowIndex = $index;
60 
61  return $this;
62  }
$index
Definition: metadata.php:60

◆ setZeroHeight()

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::setZeroHeight ( bool  $pValue)

Set ZeroHeight.

Returns
$this

Definition at line 101 of file RowDimension.php.

102  {
103  $this->zeroHeight = $pValue;
104 
105  return $this;
106  }

Field Documentation

◆ $height

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::$height = -1
private

◆ $rowIndex

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::$rowIndex
private

◆ $zeroHeight

PhpOffice\PhpSpreadsheet\Worksheet\RowDimension::$zeroHeight = false
private

The documentation for this class was generated from the following file: