System.Windows.Forms.ScrollableControl.SetDisplayRectLocation Method

Positions the display window to the specified value.

Syntax

protected void SetDisplayRectLocation (int x, int y)

Parameters

x
The horizontal offset at which to position the System.Windows.Forms.ScrollableControl.
y
The vertical offset at which to position the System.Windows.Forms.ScrollableControl.

Remarks

If the ScrollableControl.AutoScroll property is set to true, the ScrollableControl.DisplayRectangle property is the virtual size and position displayed client area of the System.Windows.Forms.ScrollableControl. Call the ScrollableControl.SetDisplayRectLocation(int, int) method to scroll through the System.Windows.Forms.ScrollableControl to the specified position.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0