Share via


DocumentWindow.ScrollIntoView Method (PowerPoint)

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 A variable that represents a DocumentWindow object.

Parameters

Name

Required/Optional

Data Type

Description

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 upper part 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

MsoTriState

Determines the starting position of the rectangle in relation to the document window.

Remarks

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

The Start parameter value can be one of these MsoTriState constants.

Constant

Description

msoFalse

The bottom right of the rectangle is to appear at the bottom right of the document window.

msoTrue

The default. The upper left of the rectangle is to appear at the upper left of the document window.

Example

This example brings into view a 100x200 point area beginning 50 points from the left edge of the slide, and 20 points from the upper part of the slide. The upper left corner of the rectangle is positioned at the upper left corner of the active document window.

ActiveWindow.ScrollIntoView Left:=50, Top:=20, _

    Width:=100, Height:=200

See Also

Concepts

DocumentWindow Object

DocumentWindow Object Members