IHTMLElement::scrollIntoViewIHTMLElement::scrollIntoView*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLElement::get_onselectstart
*Next Topic: IHTMLElement::contains

IHTMLElement::scrollIntoView


HRESULT scrollIntoView(
    VARIANT varargStart
);

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

varargStart
VARIANT structure containing a Boolean value specifying 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.

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.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.