public addRow ( float $height = null ) : PHPRtfLite_Table_Row | ||
$height | float | row height. When 0, the height is sufficient for all the text in the line; when positive, the height is guaranteed to be at least the specified height; when negative, the absolute value of the height is used, regardless of the height of the text in the line. |
리턴 | PHPRtfLite_Table_Row |
public function addRow($height = null)
{
$row = new PHPRtfLite_Table_Row($this, $this->getRowsCount() + 1, $height);
$this->_rows[] = $row;
return $row;
}
/** * tests getCell * @expectedException PHPRtfLite_Exception */ public function testGetCellWithInvalidIndex() { $this->_table->addRow(1); $this->_table->addColumnsList(array(2, 2)); $this->_table->getCell(1, 3); }