getColumn() public méthode

gets column
public getColumn ( integer $colIndex ) : PHPRtfLite_Table_Column
$colIndex integer
Résultat PHPRtfLite_Table_Column
Exemple #1
0
 /**
  * gets cell width
  *
  * @return float
  */
 public function getWidth()
 {
     if ($this->_width) {
         return $this->_width;
     }
     return $this->_table->getColumn($this->_columnIndex)->getWidth();
 }
Exemple #2
0
 /**
  * tests getColumn
  * @depends testGetColumn
  * @expectedException PHPRtfLite_Exception
  */
 public function testGetColumnWithInvalidIndex(PHPRtfLite_Table $table)
 {
     $this->assertType('PHPRtfLite_Table_Column', $table->getColumn(4));
 }