ScrollTo Method

The ScrollTo method scrolls the window to a specified page.

Syntax

bool = objMC.ScrollTo(X As uLong, Y As uLong)

Element

Description

bool

Return value indicating success or failure.

objMC

A Mathcad Window object.

X

Zero-based X-coordinate to scroll the window to, in logical document units.

Y

Zero-based Y-coordinate to scroll the window to, in logical document units.

Remarks

The origin for the X- and Y-coordinates used by the ScrollTo method is the upper left corner of the worksheet, and not the current window.