4 * PHPExcel_Worksheet_RowDimension
6 * Copyright (c) 2006 - 2015 PHPExcel
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 * @package PHPExcel_Worksheet
24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
26 * @version ##VERSION##, ##DATE##
28 class PHPExcel_Worksheet_RowDimension
extends PHPExcel_Worksheet_Dimension
40 * When this is set to a negative value, the row height should be ignored by IWriter
51 private $zeroHeight = false;
54 * Create a new PHPExcel_Worksheet_RowDimension
56 * @param int $pIndex Numeric row index
58 public function __construct($pIndex = 0)
61 $this->rowIndex
= $pIndex;
63 // set dimension as unformatted by default
64 parent
::__construct(null);
72 public function getRowIndex()
74 return $this->rowIndex
;
81 * @return PHPExcel_Worksheet_RowDimension
83 public function setRowIndex($pValue)
85 $this->rowIndex
= $pValue;
94 public function getRowHeight()
102 * @param double $pValue
103 * @return PHPExcel_Worksheet_RowDimension
105 public function setRowHeight($pValue = -1)
107 $this->height
= $pValue;
116 public function getZeroHeight()
118 return $this->zeroHeight
;
124 * @param bool $pValue
125 * @return PHPExcel_Worksheet_RowDimension
127 public function setZeroHeight($pValue = false)
129 $this->zeroHeight
= $pValue;