IHTMLTextContainer::get_scrollLeftIHTMLTextContainer::get_scrollLeft*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLTextContainer::get_scrollHeight
*Next Topic: IHTMLTextContainer::get_scrollTop

IHTMLTextContainer::get_scrollLeft


HRESULT get_scrollLeft(
    long *p 
);

Retrieves the distance, in pixels, between the left edge of the element and the leftmost portion of the element that is currently visible in the window. This is equal to the horizontal distance that the content of the element has been scrolled.

p
Address of a variable that receives the scroll-left distance.

This read-write property is always a nonnegative integer. Although it can be set to any positive or negative value, the property is set to zero if the assigned value is less than zero, and is set to the value of scrollWidth if the assigned value is greater than this. The default value is zero.

This property is always zero for elements that do not support scroll bars. For these elements, setting the property has no effect.

See also put_scrollLeft

Up Top of Page


IHTMLTextContainer::put_scrollLeft


HRESULT put_scrollLeft(
    long v 
);

Sets the distance, in pixels, between the left edge of the element and the leftmost portion of the element that is currently visible in the window. This is equal to the horizontal distance that the content of the element has been scrolled.

v
Value specifying the scroll-left distance.

This read-write property is always a nonnegative integer. Although it can be set to any positive or negative value, the property is set to zero if the assigned value is less than zero, and is set to the value of scrollWidth if the assigned value is greater than this. The default value is zero.

This property is always zero for elements that do not support scroll bars. For these elements, setting the property has no effect.

See also get_scrollLeft


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