Click to return to the Reusing Browser Technology home page    
IHTMLElement2::get_scroll...     IHTMLElement2::get_scroll...     IHTMLElement2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement2::get_scrollLeft Method


Retrieves the distance, in pixels, between the left edge of the element and the leftmost portion of the content currently visible in the window.

Syntax

HRESULT get_scrollLeft(
    VARIANT *p
);

Parameters

p
Address of a VARIANT structure that returns the element's scrollLeft parameter.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

get_scrollHeight, get_scrollTop, get_scrollWidth


IHTMLElement2::put_scrollLeft Method


Sets the distance, in pixels, between the left edge of the element and the leftmost portion of the content currently visible in the window.

Syntax

HRESULT put_scrollLeft(
    VARIANT v
);

Parameters

v
VARIANT structure that contains the scrollLeft value to set.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

put_scrollTop, get_scrollHeight, get_scrollWidth


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.