ScrollEventType 枚举

定义

描述导致 Scroll 控件发生 ScrollBar 事件的行为。Describes the behavior that caused a Scroll event for a ScrollBar control.

public enum class ScrollEventType
public enum ScrollEventType
type ScrollEventType = 
Public Enum ScrollEventType
继承
ScrollEventType

字段

EndScroll 0

Thumb 已拖动到一个新位置,并且现在不再会由用户拖动。The Thumb was dragged to a new position and is now no longer being dragged by the user.

First 1

Thumb 已移动到 MinimumScrollBar 位置。The Thumb moved to the Minimum position of the ScrollBar. 对于一个垂直 ScrollBar,此移动在用户按下 Ctrl+Home 键时发生。For a vertical ScrollBar, this movement occurs when the CTRL+HOME keys are pressed. 此移动对应于垂直 ScrollToTopCommand 中的 ScrollBar 和水平 ScrollToLeftEndCommand 中的 ScrollBarThis movement corresponds to a ScrollToTopCommand in a vertical ScrollBar and a ScrollToLeftEndCommand in a horizontal ScrollBar.

LargeDecrement 2

Thumb 向左(对于水平 LargeChange)或向上(对于垂直 ScrollBar)移动指定距离(由 ScrollBar 的值确定)。The Thumb moved a specified distance, as determined by the value of LargeChange, to the left for a horizontal ScrollBar or upward for a vertical ScrollBar. 对于垂直 ScrollBar,此移动在用户按下 Thumb 上的页按钮或按下 Page Up 键时发生,并对应于 PageUpCommandFor a vertical ScrollBar, this movement occurs when the page button that is above the Thumb is pressed, or when the PAGE UP key is pressed, and corresponds to a PageUpCommand. 对于水平 ScrollBar,此移动在用户按下 Thumb 左侧的页按钮时发生,并对应于 PageLeftCommandFor a horizontal ScrollBar, this movement occurs when the page button to the left of the Thumb is pressed, and corresponds to a PageLeftCommand.

LargeIncrement 3

Thumb 向右(对于水平 LargeChange)或向下(对于垂直 ScrollBar)移动指定距离(由 ScrollBar 的值确定)。The Thumb moved a specified distance, as determined by the value of LargeChange, to the right for a horizontal ScrollBar or downward for a vertical ScrollBar. 对于垂直 ScrollBar,此移动在用户按下 Thumb 下的页按钮或按下 Page Down 键时发生,并对应于 PageDownCommandFor a vertical ScrollBar, this movement occurs when the page button that is below the Thumb is pressed, or when the PAGE DOWN key is pressed, and corresponds to a PageDownCommand. 对于水平 ScrollBar,此移动在用户按下 Thumb 右侧的页按钮时发生,并对应于 PageRightCommandFor a horizontal ScrollBar, this movement occurs when the page button to the right of the Thumb is pressed, and corresponds to a PageRightCommand.

Last 4

Thumb 已移动到 MaximumScrollBar 位置。The Thumb moved to the Maximum position of the ScrollBar. 对于一个垂直 ScrollBar,此移动在用户按下 Ctrl+End 键时发生。For a vertical ScrollBar, this movement occurs when the CTRL+END keys are pressed. 此移动对应于垂直 ScrollToEndCommand 中的 ScrollBar 和水平 ScrollToRightEndCommand 中的 ScrollBarThis movement corresponds to a ScrollToEndCommand in a vertical ScrollBar and a ScrollToRightEndCommand in a horizontal ScrollBar.

SmallDecrement 5

Thumb 向左(对于水平 SmallChange)或向上(对于垂直 ScrollBar)移动一小段距离(由 ScrollBar 的值确定)。The Thumb moved a small distance, as determined by the value of SmallChange, to the left for a horizontal ScrollBar or upward for a vertical ScrollBar. 对于垂直 ScrollBar,此移动在用户按下上 RepeatButton 或按下向上键时发生,并对应于 LineUpCommandFor a vertical ScrollBar, this movement occurs when the upper RepeatButton is pressed or when the UP ARROW key is pressed, and corresponds to a LineUpCommand. 对于水平 ScrollBar,此移动在用户按下左 RepeatButton 时发生,并对应于 LineLeftCommandFor a horizontal ScrollBar, this movement occurs when the left RepeatButton is pressed, and corresponds to a LineLeftCommand.

SmallIncrement 6

Thumb 向右(对于水平 SmallChange)或向下(对于垂直 ScrollBar)移动一小段距离(由 ScrollBar 的值确定)。The Thumb moved a small distance, as determined by the value of SmallChange, to the right for a horizontal ScrollBar or downward for a vertical ScrollBar. 对于垂直 ScrollBar,此移动在用户按下下 RepeatButton 或按下向下键时发生,并对应于 LineDownCommandFor a vertical ScrollBar, this movement occurs when the lower RepeatButton is pressed or when the DOWN ARROW key is pressed, and corresponds to a LineDownCommand. 对于水平 ScrollBar,此移动在用户按下右 RepeatButton 时发生,并对应于 LineRightCommandFor a horizontal ScrollBar, this movement occurs when the right RepeatButton is pressed, and corresponds to a LineRightCommand.

ThumbPosition 7

Thumb 已移动到新位置,因为用户在 ScrollBar 的快捷菜单中选择了“滚动到此处”。The Thumb moved to a new position because the user selected Scroll Here in the shortcut menu of the ScrollBar. 此移动对应于 ScrollHereCommandThis movement corresponds to the ScrollHereCommand. 要查看快捷菜单,可在指针位于 ScrollBar 上方时右击鼠标。To view the shortcut menu, right-click the mouse when the pointer is over the ScrollBar.

ThumbTrack 8

Thumb 被拖动并导致了 MouseMove 事件。The Thumb was dragged and caused a MouseMove event. 当在 Scroll 中拖动 ScrollEventType 时,可能多次发生此 ThumbScrollBar 事件。A Scroll event of this ScrollEventType may occur more than one time when the Thumb is dragged in the ScrollBar.

注解

页面按钮不会显示为按钮, 但会在的任一端Thumb ScrollBarRepeatButton和控件之间占据空间。The page buttons are not visible as buttons, but they occupy the space between the Thumb and the RepeatButton controls on either end of the ScrollBar. 当单击Thumb RepeatButton和之间的鼠标左键时, 用户单击页面按钮。The user clicks a page button when clicking the left mouse button between the Thumb and a RepeatButton. 此操作的结果是Thumb在 "页面" 按钮的方向上移动。The result of this action is to move the Thumb in the direction of the page button. 有关页按钮效果的详细信息, 请参阅 LargeIncrement 和 LargeDecrement 成员的说明。For more information about the effect of the page buttons, see the descriptions of the LargeIncrement and LargeDecrement members. 下图显示了ScrollBar的元素, 包括页面按钮。The following illustration shows the elements of a ScrollBar, including the page buttons.

滚动条的不同部分The different parts of a ScrollBar

适用于

另请参阅