boundingHeight property
Retrieves the height of the rectangle that bounds the TextRange object.
Syntax
| JavaScript | |
|---|
Property values
Type: Integer
the height of the bounding rectangle, in pixels.
Examples
This example retrieves the value of the boundingHeight property for the given text area.
<SCRIPT>
function boundDim(oObject)
{
var oTextRange = oObject.createTextRange();
if (oTextRange != null) {
console.log("The bounding height is \n" +
oTextRange.boundingHeight);
}
}
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA COLS=100 ROWS=2 ID=oElmnt1
onclick="boundDim(this)"> . . . </TEXTAREA>
See also
- TextRange
- Reference
- boundingLeft
- boundingTop
- boundingWidth
Build date: 11/28/2012
