Share via


Scroll Method [Visio 2003 SDK Documentation]

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

object**.Scroll** (nxFlags, nyFlags)

object     Required. An expression that returns a Window object.

nxFlags     Required Long. Indicates how to scroll horizontally.

nyFlags     Required Long. Indicates how to scroll vertically.

Version added

2000

Remarks

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

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

Applies to | Window object

See Also | ScrollViewTo method | ViewChanged event