ScrollIntoView Method

         Example         Applies To

Scrolls the document window so that items within a specified rectangular area are displayed in the document window or pane.

Syntax

expression.ScrollIntoView(Left, Top, Width, Height, Start)

expression   Required. An expression that returns a DocumentWindow object.

Left   Required Long. The horizontal distance (in points) from the left edge of the document window to the rectangle.

Top   Required Long. The vertical distance (in points) from the top of the document window to the rectangle.

Width   Required Long. The width of the rectangle (in points).

Height   Required Long. The height of the rectangle (in points).

Start   Optional Boolean. True if the top left of the rectangle is to appear at the top left of the document window. False if the bottom right of the rectangle is to appear at the bottom right of the document window. The default value is True.

Remarks

If the bounding rectangle is larger than the document window, the Start argument specifies which end of the rectangle displays or gets initial focus. This method cannot be used with outline or slide sorter views.