Window.ScrollIntoView Method
Scrolls the document window so that the contents of a specified rectangular area are displayed in either the upper-left or lower-right corner of the document window or 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 Window
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.Int32Required Integer. The horizontal position of the rectangle (in points) from the left edge of the document window or pane.
Top
Type: System.Int32Required Integer. The vertical position of the rectangle (in points) from the top of the document window or pane.
Width
Type: System.Int32Required Integer. The width of the rectangle, in points.
Height
Type: System.Int32Required Integer. The height of the rectangle, in points.
Start
Type: System.ObjectOptional Integer. True to have the upper-left corner of the rectangle appear in the upper-left corner of the document window or pane. False to have the lower-right corner of the rectangle appear in the lower-right corner of the document window or pane. The default value is True.
Remarks
The Start argument is useful for orienting the screen display when the rectangle is larger than the document window or pane.