The TextRangeMetrics2 interface provides the ability to programmatically access the client and bounding rectangles of the TextRange object.
IHTMLTextRangeMetrics2 Methods
getBoundingClientRect Retrieves an object that specifies the bounds of a collection of TextRectangle objects. getClientRects Retrieves a collection of rectangles that describe the layout of the contents of an object or range within the client. Each rectangle describes a single line.
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