Click to return to the DHTML, HTML     
boundingHeight Property     boundingTop Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

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

HTMLN/A
Scripting[ iLeft = ] TextRange.boundingLeft

Possible Values

iLeftInteger that specifies the left coordinate of the bounding rectangle, in pixels.

The property is read-only with no default value.

Example

This example retrieves the value of the boundingLeft property for the given text area.

Sample Code

<SCRIPT>
function boundDim(oObject)
{
    var collTextarea = document.all.tags("TEXTAREA");
    if (collTextarea != null) {
        var oTextRage = 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>

This feature requires Microsoft® Internet Explorer 4.01 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting TextRange

See Also

boundingHeight, boundingTop, boundingWidth


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.