Table of contents
TOC
Collapse the table of content
Expand the table of content

Viewer.Pan Method (Visio Viewer)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

NameRequired/OptionalData TypeDescription
DeltaXRequiredLongThe amount, in pixels, to move horizontally.
DeltaYRequiredLongThe 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
© 2018 Microsoft