ScrollTo
This method scrolls a displayed object to a specified offset.
The result is identical to using the OffsetX
and
OffsetY
properties, but performs this operation in one step,
avoiding unnecessary display movement.
Syntax
ScrollTo (XOffset As Long, YOffset As Long)
Parameter | Description |
---|---|
XOffset |
Offset in x-direction in pixels |
YOffset |
Offset in y-direction in pixels |