Window.ScrollIntoView(Int32, Int32, Int32, Int32, Object) Method

Definition

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.

public void ScrollIntoView (int Left, int Top, int Width, int Height, object Start);
Public Sub ScrollIntoView (Left As Integer, Top As Integer, Width As Integer, Height As Integer, Optional Start As Object)

Parameters

Left
Int32

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

Top
Int32

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

Width
Int32

Required Integer. The width of the rectangle, in points.

Height
Int32

Required Integer. The height of the rectangle, in points.

Start
Object

Optional 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.

Applies to