TextRange.getClientRects() (Method)

A collection of textRectangle objects within the client display surface.

Availability:

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

A TextRange may describe several discontinuous blocks of text. Each one of these would be bounded by a separate client rectangle.

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 for each of the different text areas. These are then used to instantiate a textRectangle object which is added to a collection.

The collection of individual client textRectangle objects is then returned to the caller.

See also:textRectangle object