Scroll method

Microsoft Visio Developer Reference

Scroll method

   Example   

Scrolls the contents of a window vertically, horizontally, or both.

Version added

2000

Syntax

object.Scroll (longFlagsX, longFlagsY)

object

Required. An expression that returns a Window object.

longFlagsX

Required Long. Indicates how to scroll horizontally.

longFlagsY

Required Long. Indicates how to scroll vertically.

Remarks

Constants representing ways to scroll are declared by the Visio type library in VisWindowScrollX and VisWindowScrollY.

Click to show or hide information.Values of longFlagsX

Constant

Value

visScrollLeft

0

visScrollRight

1

visScrollLeftPage

2

visScrollRightPage

3

visScrollToLeft

6

visScrollToRight

7

visScrollNoneX

9

Click to show or hide information.Values of longFlagsY

Constant

Value

visScrollUp

0

visScrollDown

1

visScrollUpPage

2

visScrollDownPage

3

visScrollToTop

6

visScrollToBottom

7

visScrollNoneY

9

If the Window object is not a built-in MDI or built-in docked stencil type, then the Scroll method raises an exception.