Prev EERow class |
ExcelExplorer Manual |
Next Hidden |
 |
(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";
?>
|