Scrolls the contents of the window horizontally or vertically.
Object.Scroll (enScroll )
The Scroll method syntax has the following parts:
Name |
Type |
Description |
Object |
ALog |
ALog control |
enScroll |
enumALogScroll |
An integer specifying the way the window is scrolled. |
Name |
Value |
Description |
alogScrollBottom |
0 |
Bottom |
alogScrollTop |
1 |
Top |
alogScrollPageDown |
2 |
Page Down |
alogScrollPageUp |
3 |
Page Up |
alogScrollDown |
4 |
Down |
alogScrollUp |
5 |
Up |
alogScrollHome |
6 |
Home |
alogScrollEnd |
7 |
End |
alogScrollPageLeft |
8 |
Page Left |
alogScrollPageRight |
9 |
Page Right |
alogScrollLeft |
10 |
Left |
alogScrollRight |
11 |
Right |
This method can be used to scroll the contents of the window similar to the way the window scroll when using the arrow key, Page Up/Down or Home and End keys (with or with out the Ctrl key pressed).
For more information on the ALog control, see the Microsoft WebBrowser control documentation in the Microsoft web site.
The following example shows how to scroll to the bottom of the log document:
log.Scroll(alogScrollBottom)