System.Windows.Forms.ScrollBarRenderer.DrawLeftHorizontalTrack Method

Draws a horizontal scroll bar track with visual styles.

Syntax

public static void DrawLeftHorizontalTrack (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.VisualStyles.ScrollBarState state)

Parameters

g
The System.Drawing.Graphics used to draw the scroll bar track.
bounds
The System.Drawing.Rectangle that specifies the bounds of the scroll bar track.
state
One of the System.Windows.Forms.VisualStyles.ScrollBarState values that specifies the visual state of the scroll bar track.

Remarks

Before using this method, you should verify that the ScrollBarRenderer.IsSupported property returns true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0