boundingHeight property (Internet Explorer)

Switch View :
ScriptFree
boundingHeight property

Retrieves the height of the rectangle that bounds the TextRange object.

Syntax

JavaScript

p = object.boundingHeight

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.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/boundingTop.htm


<SCRIPT>
function boundDim(oObject)
{
    var oTextRange = oObject.createTextRange();
    if (oTextRange != null) {
        alert("The bounding height is \n" + 
            oTextRange.boundingHeight);
     }
}
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA COLS=100 ROWS=2 ID=oElmnt1 
    onclick="boundDim(this)"> . . . </TEXTAREA>

See also

TextRange
TextRange Constructor
Reference
boundingLeft
boundingTop
boundingWidth

 

 

Send comments about this topic to Microsoft

Build date: 2/14/2012