DocumentWindow.ScrollIntoView Method

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

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Sub ScrollIntoView ( _
    Left As Single, _
    Top As Single, _
    Width As Single, _
    Height As Single, _
    Start As MsoTriState _
)
'Usage
Dim instance As DocumentWindow
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
Dim Start As MsoTriState

instance.ScrollIntoView(Left, Top, Width, _
    Height, Start)
void ScrollIntoView(
    float Left,
    float Top,
    float Width,
    float Height,
    MsoTriState Start
)

Parameters

  • Left
    Type: System.Single
    The horizontal distance (in points) from the left edge of the document window to the rectangle.
  • Top
    Type: System.Single
    The vertical distance (in points) from the upper part of the document window to the rectangle.
  • Width
    Type: System.Single
    The width of the rectangle (in points).
  • Height
    Type: System.Single
    The height of the rectangle (in points).

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 value of the ScrollIntoView property 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.

See Also

Reference

DocumentWindow Interface

DocumentWindow Members

Microsoft.Office.Interop.PowerPoint Namespace