Click to return to the Reusing Browser Technology home page    
IHTMLTxtRange::moveToElem...     IHTMLTxtRange::parentElem...     IHTMLTxtRange Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLTxtRange::moveToPoint Method


Moves the start and end positions of the text range to the given point.

Syntax

HRESULT moveToPoint( 
    long x,
    long y 
);

Parameters

x
Integer that specifies the x-coordinate, in pixels.
y
Integer that specifies the y-coordinate, in pixels.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The coordinates of the point must be in pixels and be relative to the upper-left corner of the window. The resulting text range is empty, but can be expanded and moved using methods such as expand and moveEnd.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 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.