ScrollBarState Enumeration
Collapse the table of content
Expand the table of content

ScrollBarState Enumeration


Specifies the visual state of a scroll bar that is drawn with visual styles.

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

public enum ScrollBarState

Member nameDescription

The scroll bar element is disabled.


The scroll bar element is hot.


The scroll bar element is normal.


The scroll bar element is pressed.

The ScrollBarState values correspond to the states of the VisualStyleElement objects exposed by the following classes:

The 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.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft