boundingLeft
Summary
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.
Property of dom/TextRangedom/TextRange
Syntax
Note: This property is read-only.
var result = textRange.boundingLeft;
Return Value
Returns an object of type NumberNumber
the left coordinate of the bounding rectangle, in pixels.
Examples
This example retrieves the value of the boundingLeft property for the given text area.
<script type="text/javascript">
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>
Syntax
result = textRange.boundingLeft;
Attributions
Microsoft Developer Network: [boundingLeft Property Article]