ScrollBarState 枚举

定义

指定用视觉样式绘制的滚动条的视觉状态。Specifies the visual state of a scroll bar that is drawn with visual styles.

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

字段

Disabled 4

滚动条元素已被禁用。The scroll bar element is disabled.

Hot 2

滚动条元素处于热状态。The scroll bar element is hot.

Normal 1

滚动条元素处于正常状态。The scroll bar element is normal.

Pressed 3

滚动条元素处于按下状态。The scroll bar element is pressed.

注解

这些ScrollBarState值与以下类公开的VisualStyleElement对象状态相对应:The ScrollBarState values correspond to the states of the VisualStyleElement objects exposed by the following classes:

值还用作System.Windows.Forms.ScrollBarRenderer类方法中的参数, 这些方法用于绘制滚动条轨道、滚动框 (也称为滚动块) 和滚动框手柄。 ScrollBarStateThe ScrollBarState values are also used as an argument in the System.Windows.Forms.ScrollBarRenderer class methods that draw the scroll bar track, scroll box (also known as the thumb), and scroll box grip.

适用于