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