boundingLeft property
Retrieves the distance between the left edge of the rectangle that bounds the TextRange object and the left side of the object that contains the TextRange.
Syntax
| JavaScript | |
|---|
Property values
Type: Integer
the left coordinate of the bounding rectangle, in pixels.
Examples
This example retrieves the value of the boundingLeft 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 left is \n" +
oTextRange.boundingLeft);
}
}
</SCRIPT>
</HEAD>
<BODY>
<TEXTAREA COLS=100 ROWS=2 ID=oTextarea
onclick="boundDim(this)"> . . . </TEXTAREA>
See also
- TextRange
- TextRange Constructor
- Reference
- boundingHeight
- boundingTop
- boundingWidth
Send comments about this topic to Microsoft
Build date: 2/14/2012