HtmlWindow.ScrollTo Method (Int32, Int32)

 

Scrolls the window to the designated position.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void ScrollTo(
	int x,
	int y
)

Parameters

x
Type: System.Int32

The x-coordinate, relative to the top-left corner of the current window, toward which the page should scroll.

y
Type: System.Int32

The y-coordinate, relative to the top-left corner of the current window, toward which the page should scroll.

ScrollTo will cause the document to scroll so that the specified coordinate on the document is located in the upper-left corner of the document's window. If the document is not long or wide enough for this to happen, ScrollTo will scroll through the document as far as possible in the specified direction.

.NET Framework
Available since 2.0
Return to top
Show: