編輯

共用方式為


Window.SmallScroll(Object, Object, Object, Object) Method

Definition

Scrolls a window or pane by the specified number of lines.

public void SmallScroll (ref object Down, ref object Up, ref object ToRight, ref object ToLeft);
abstract member SmallScroll : obj * obj * obj * obj -> unit
Public Sub SmallScroll (Optional ByRef Down As Object, Optional ByRef Up As Object, Optional ByRef ToRight As Object, Optional ByRef ToLeft As Object)

Parameters

Down
Object

Optional Object. The number of lines to scroll the window down. A "line" corresponds to the distance scrolled by clicking the down scroll arrow on the vertical scroll bar once.

Up
Object

Optional Object. The number of lines to scroll the window up. A "line" corresponds to the distance scrolled by clicking the up scroll arrow on the vertical scroll bar once.

ToRight
Object

Optional Object. The number of lines to scroll the window to the right. A "line" corresponds to the distance scrolled by clicking the right scroll arrow on the horizontal scroll bar once.

ToLeft
Object

Optional Object. The number of lines to scroll the window to the left. A "line" corresponds to the distance scrolled by clicking the left scroll arrow on the horizontal scroll bar once.

Remarks

This method is equivalent to clicking the scroll arrows on the horizontal and vertical scroll bars.

If Down and Up are both specified, the window is scrolled by the difference of the arguments. For example, if Down is 3 and Up is 6, the window is scrolled up three lines. Similarly, if ToLeft and ToRight are both specified, the window is scrolled by the difference of the arguments.

Any of these arguments can be a negative number. If no arguments are specified, the window is scrolled down by one line.

Applies to