ImageGear Professional v18.2 > API Reference Guide > Display Component API Reference > Display Component Objects > IGPageDisplay Object > IGPageDisplay Methods > ScrollTo Method |
Scrolls the image to a specified position and updates the window's scroll bars accordingly. It can be used even if a window's scroll bars are disabled. Both scroll positions should be in valid scroll range but if not, then the nearest valid value will be assigned.
ScrollTo(hWnd As Long, XPos As Long, YPos As Long)
Name | Description |
---|---|
hWnd | Handle of window where image is displayed and where scrolling is performed. |
XPos | New horizontal scroll position. Should be in a valid range that can be retrieved using the GetScrollAttrs Method. |
YPos | New vertical scroll position. Should be in a valid range that can be retrieved using the GetScrollAttrs Method. |
N/A
N/A
Display