boundingTop Property
Retrieves the distance between the top edge of the rectangle that bounds the TextRange object and the top side of the object that contains the TextRange.
Syntax
HTML N/A Scripting [ iTop = ] TextRange.boundingTop
Possible Values
iTop Integer that specifies the top coordinate of the bounding rectangle, in pixels. The property is read-only with no default value.
Example
This example retrieves the value of the boundingTop property for the given text area.
Sample Code
<SCRIPT> function boundDim(oObject) { var collTextarea = document.all.tags("TEXTAREA"); if (collTextarea != null) { var oTextRange = oObject.createTextRange(); if (oTextRange != null) { alert("The bounding top is \n" + oTextRange.boundingTop); } } } </SCRIPT> </HEAD> <BODY> <TEXTAREA COLS=100 ROWS=2 ID=oTextarea onclick="boundDim(this)"> . . . </TEXTAREA>
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus.
HTML N/A Scripting TextRange
See Also
boundingHeight, boundingLeft, boundingWidth
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.