Pane.ScrollIntoView Method

Scrolls the pane so that the contents of a specified rectangular area are displayed in either the upper-left or lower-right corner of the pane.

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

Syntax

'Declaration
Sub ScrollIntoView ( _
    Left As Integer, _
    Top As Integer, _
    Width As Integer, _
    Height As Integer, _
    Start As Object _
)
'Usage
Dim instance As Pane
Dim Left As Integer
Dim Top As Integer
Dim Width As Integer
Dim Height As Integer
Dim Start As Object

instance.ScrollIntoView(Left, Top, Width, _
    Height, Start)
void ScrollIntoView(
    int Left,
    int Top,
    int Width,
    int Height,
    Object Start
)

Parameters

  • Left
    Type: System.Int32

    Required Integer. The horizontal position of the rectangle (in points) from the left edge of the pane.

  • Top
    Type: System.Int32

    Required Integer. The vertical position of the rectangle (in points) from the top of the pane.

  • Width
    Type: System.Int32

    Required Integer. The width of the rectangle in points.

  • Height
    Type: System.Int32

    Required Integer. The height of the rectangle in points.

  • Start
    Type: System.Object

    Optional Object. True to have the upper-left corner of the rectangle appear in the upper-left corner of the pane. False to have the lower-right corner of the rectangle appear in the lower-right corner of the pane. The default value is True.

Remarks

The Start argument is useful for orienting the screen display when the rectangle is larger than the pane.

See Also

Reference

Pane Interface

Pane Members

Microsoft.Office.Interop.Excel Namespace