TextRange.getBoundingClientRect() (Method)

A method that returns a rectangle measured in pixels within the client display surface.


JScript - 5.0
Internet Explorer - 5.0
Property/method value type:Rect object
JavaScript syntax:IEmyTextRange.getBoundingClientRect()

This method evaluates the current start and end points of the text range and works out the pixel locations of a bounding rectangle in the display screen. These are then used to instantiate a textRectangle object which is returned with the extent rectangle of the TextRange object as its values.

A TextRange may describe several discontinuous blocks of text. Each one of these would be bounded by a separate client rectangle. This extent rectangle bounds the entire set.

See also:Rect object, textRectangle object