Prev
EERow class
ExcelExplorer Manual Next
Hidden


EERow::Height

(ExcelExplorer 4.0)

Get row height.

integer Height(  )
Parameters
None
Description

Returns row height in a logical twips.

Convertion to other units can be done using one of the following methods:

Note that this method can be used even for non-defined rows. In this case ExcelExplorer returns row height that Excel uses to visualize specified row (default row height).

However in erroneous Excel files default row height can be absent. In such cases FALSE will be returned - no row height info found and no default row height is set.

Using this value in HTML (for the second row of the first worksheet)


<?php

  $height 
$ee->Row(0,1)->Height();

  echo 
"<table>\n";

  echo 
'<tr style="height:';
  echo 
$ee->Helper()->Tw2In($height).'in">';
  echo 
"<td>Height in inches</td></tr>\n";

  echo 
'<tr style="height:';
  echo 
$ee->Helper()->Tw2Pt($height).'pt">';
  echo 
"<td>Height in points</td></tr>\n";

  echo 
"</table>\n";
?>

 
Prev
EERow class
Home
Up
Next
Hidden

 
© 2002-2009 EEPHP.com
All Rights Reserved.