Causes the object to scroll into view, aligning it either at the top or bottom of the window.
HRESULT scrollIntoView( VARIANT varargStart );
- [in] VARIANT of type VT_BOOL that specifies one of the following values:
- Default. Scrolls the object so that top of the object is visible at the top of the window.
- Scrolls the object so that the bottom of the object is visible at the bottom of the window.
Returns S_OK if successful, or an error value otherwise.
The IHTMLControlRange::scrollIntoView method is useful for immediately showing the user the result of some action without requiring the user to manually scroll through the document to find the result.
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.