Viewer.Pan method (Visio Viewer)
Moves the page by the specified coordinate values, in pixels, in Microsoft Visio Viewer.
Syntax
expression.Pan (DeltaX, DeltaY)
expression An expression that returns a Viewer object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
DeltaX | Required | Long | The amount, in pixels, to move horizontally. |
DeltaY | Required | Long | The amount, in pixels, to move vertically. |
Return value
Nothing
Remarks
The values of DeltaX and DeltaY can be positive or negative.
Example
The following code moves the page 100 pixels to the right (horizontally) and 200 pixels down (vertically).
vsoViewer.Pan 100, 200
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.