Click to return to the Reusing Browser Technology home page    
IHTMLControlRange::remove...     IHTMLControlRange::Select...     IHTMLControlRange Interfa...    
Web Workshop  |  Reusing Browser Technology

IHTMLControlRange::scrollIntoView Method


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

Syntax

HRESULT scrollIntoView(
    VARIANT varargStart
);

Parameters

varargStart
Boolean value that specifies whether to place the object at the top of the window or at the bottom. If TRUE, the method scrolls the object so that its top is visible at the top of the window. If FALSE, the bottom of the object is visible at the bottom of the window. If no value is given, the object scrolls to the top by default.

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 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.