Click to return to the Reusing Browser Technology home page    
IHTMLElement2::getBoundin...     IHTMLElement2::getElement...     IHTMLElement2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement2::getClientRects Method


Retrieves a collection of rectangles that describe the layout of the contents of an object or range. Each rectangle describes a single line.

Syntax

HRESULT getClientRects(
    IHTMLRectCollection **pRectCol
);

Parameters

pRectCol
Address of a pointer to an IHTMLRectCollection interface that returns a collection of rectangle objects.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The pRectCol parameter has properties such as top, left, right, and bottom. Each property represents a coordinate of the rectangle, in pixels.

Each rectangle is expressed in client window coordinates.

See Also

getBoundingClientRect


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.