System.Windows.Forms
2.0.0.0
System.Object
The class provides a set of static methods that can be used to render a scroll bar control with the current visual style of the operating system. Rendering a control refers to drawing the user interface of a control. This is useful if you are drawing a custom control that should have the appearance of the current visual style. To draw a scroll bar, use a combination of the methods in this class to render each part of the scroll bar.
If visual styles are enabled in the operating system and visual styles are applied to the client area of application windows, the methods of this class will draw the scroll bar with the current visual style. Otherwise, the methods of this class will throw an . To determine whether the members of this class can be used, you can check the value of the property.
This class wraps the functionality of a that is set to one of the elements exposed by the class. For more information, see Rendering Controls with Visual Styles.
Provides methods used to render a scroll bar control with visual styles. This class cannot be inherited.
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a scroll arrow with visual styles.
The used to draw the scroll arrow.
The that specifies the bounds of the scroll arrow.
One of the values that specifies the visual state of the scroll arrow.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a horizontal scroll box (also known as the thumb) with visual styles.
The used to draw the scroll box.
The that specifies the bounds of the scroll box.
One of the values that specifies the visual state of the scroll box.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a grip on a horizontal scroll box (also known as the thumb) with visual styles.
The used to draw the scroll box grip.
The that specifies the bounds of the scroll box grip.
One of the values that specifies the visual state of the scroll box grip.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a horizontal scroll bar track with visual styles.
The used to draw the scroll bar track.
The that specifies the bounds of the scroll bar track.
One of the values that specifies the visual state of the scroll bar track.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a vertical scroll bar track with visual styles.
The used to draw the scroll bar track.
The that specifies the bounds of the scroll bar track.
One of the values that specifies the visual state of the scroll bar track.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a horizontal scroll bar track with visual styles.
The used to draw the scroll bar track.
The that specifies the bounds of the scroll bar track.
One of the values that specifies the visual state of the scroll bar track.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a scroll bar sizing handle with visual styles.
The used to draw the sizing handle.
The that specifies the bounds of the sizing handle.
One of the values that specifies the visual state of the sizing handle.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a vertical scroll bar track with visual styles.
The used to draw the scroll bar track.
The that specifies the bounds of the scroll bar track.
One of the values that specifies the visual state of the scroll bar track.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a vertical scroll box (also known as the thumb) with visual styles.
The used to draw the scroll box.
The that specifies the bounds of the scroll box.
One of the values that specifies the visual state of the scroll box.
2.0.0.0
Method
System.Void
Before using this method, you should verify that the property returns true.
Draws a grip on a vertical scroll box (also known as the thumb) with visual styles.
The used to draw the scroll box grip.
The that specifies the bounds of the scroll box grip.
One of the values that specifies the visual state of the scroll box grip.
2.0.0.0
Method
System.Drawing.Size
The size of the sizing handle is determined by the current visual style of the operating system.
Before using this method, you should verify that the property returns true.
Returns the size of the sizing handle.
A that specifies the size of the sizing handle.
The this operation will use.
One of the values that specifies the visual state of the sizing handle.
2.0.0.0
Method
System.Drawing.Size
The size of the scroll box grip is determined by the current visual style of the operating system.
Before using this method, you should verify that the property returns true.
Returns the size of the scroll box grip.
A that specifies the size of the scroll box grip.
The this operation will use.
One of the values that specifies the visual state of the scroll box grip.
2.0.0.0
Property
System.Boolean
To be added.
If this property is false, the methods of this class will throw an .
Gets a value indicating whether the class can be used to draw a scroll bar with visual styles.
2.0.0.0