Click to return to the Reusing Browser Technology home page    
IHTMLTextRangeMetrics2 In...     IHTMLTextRangeMetrics2::g...     IHTMLTextRangeMetrics2 In...    
Web Workshop  |  Reusing Browser Technology

IHTMLTextRangeMetrics2::getBoundingClientRect Method


Retrieves an object that specifies the bounds of a collection of TextRectangle objects.

Syntax

HRESULT getBoundingClientRect(
    IHTMLRect **pRect
    );

Parameters

pRect
Address of a pointer to an IHTMLRect interface that returns a rectangle object having four integer properties (top, left, right, and bottom), each representing a coordinate of the rectangle, in pixels.

Return Value

Returns S_OK if the function was bound successfully, or an error code otherwise.

Remarks

The method retrieves the left, top, right, or bottom coordinate of the union of rectangles relative to the client's upper-left corner. In Microsoft® Internet Explorer 5, the coordinates of the window's upper-left position are 2, 2 (pixels) with respect to the true client.

See Also

getClientRects


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.