Click to return to the Reusing Browser Technology home page    
IHTMLTxtRange::queryComma...     IHTMLTxtRange::select Met...     IHTMLTxtRange Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLTxtRange::scrollIntoView Method


Scrolls the range into view, aligning it at either the top or bottom of the window.

Syntax

HRESULT scrollIntoView(
    VARIANT_BOOL fStart 
);

Parameters

fStart
Boolean value that specifies the alignment of the range. TRUE aligns the range at the top of the window; FALSE aligns it at the bottom.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

Depending on the size of the given object and the current window, this method might not be able to put the item at the very top or very bottom, but will always position the object as close to the requested position as possible.

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.