Click to return to the Reusing Browser Technology home page    
IHTMLTextElement Interfac...     IHTMLTextRangeMetrics::ge...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLTextRangeMetrics Interface


The IHTMLTextRangeMetrics interface exposes information about the position of a TextRange object. This enables greater control and definition of any given object on a page, thereby providing enhanced accessibility support to users.

IHTMLTextRangeMetrics Methods

get_boundingHeight Retrieves the height of the rectangle that bounds the TextRange interface.
get_boundingLeft Retrieves the left coordinate of the rectangle that bounds the TextRange interface.
get_boundingTop Retrieves the top coordinate of the rectangle that bounds the TextRange interface.
get_boundingWidth Retrieves the width of the rectangle that bounds the TextRange interface.
get_offsetLeft Retrieves the left position of the object in relation to the object's parent coordinates.
get_offsetTop Retrieves the top position of the object in relation to the object's parent coordinates.

Interface Information

Implementation System (Mshtml.dll)
Inherits from IDispatch
Header and IDL files Mshtml.h, Mshtml.idl
Minimum availability Internet Explorer 5
Minimum operating systems Windows 95, Windows NT 4.0


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.