Provides methods used to render a scroll bar control with visual styles. This class cannot be inherited.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Thetype exposes the following members.
|DrawArrowButton||Draws a scroll arrow with visual styles.|
|DrawHorizontalThumb||Draws a horizontal scroll box (also known as the thumb) with visual styles.|
|DrawHorizontalThumbGrip||Draws a grip on a horizontal scroll box (also known as the thumb) with visual styles.|
|DrawLeftHorizontalTrack||Draws a horizontal scroll bar track with visual styles.|
|DrawLowerVerticalTrack||Draws a vertical scroll bar track with visual styles.|
|DrawRightHorizontalTrack||Draws a horizontal scroll bar track with visual styles.|
|DrawSizeBox||Draws a scroll bar sizing handle with visual styles.|
|DrawUpperVerticalTrack||Draws a vertical scroll bar track with visual styles.|
|DrawVerticalThumb||Draws a vertical scroll box (also known as the thumb) with visual styles.|
|DrawVerticalThumbGrip||Draws a grip on a vertical scroll box (also known as the thumb) with visual styles.|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetSizeBoxSize||Returns the size of the sizing handle.|
|GetThumbGripSize||Returns the size of the scroll box grip.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from 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 InvalidOperationException. To determine whether the members of this class can be used, you can check the value of the IsSupported property.
This class wraps the functionality of a System.Windows.Forms.VisualStyles.VisualStyleRenderer that is set to one of the elements exposed by the System.Windows.Forms.VisualStyles.VisualStyleElement.ScrollBar class. For more information, see Rendering Controls with Visual Styles.
Windows XP Home Edition, Windows XP Professional x64 Edition, Windows Server 2003 Platform Note: Visual styles are supported only on these platforms.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2