Scrolls a window to a particular page coordinate.
Applies to: Window object
object.ScrollViewTo ( x, y ) |
The ScrollViewTo method syntax has these parts:
Part | Description |
object | Required. An expression, that returns an instance of the Window object. |
x |
Required. An expression that returns a Double value. The x-coordinate to which to scroll. |
y | Required. An expression that returns a Double value. The y-coordinate to which to scroll. |
This method is only effective if the window is of the document view type (see the Type property). For windows of all other types, the ScrollViewTo method always returns 0.
The method scrolls the window so that the point with the x and y coordinates is displayed in the center of the window. The coordinates are specified in the coordinate system of the page or the shape, displayed in the window. The units of measure are internal units (InternalUnit). Use the ViewCenterX and ViewCenterY properties to get the coordinates of the point of the page or group displayed in the center of the window.
See Also |
Type property, ViewCenterX property, ViewCenterY property, ViewZoom property |