System.Windows.Forms.TrackBarRenderer.DrawHorizontalTrack Method

Draws the track for a horizontal track bar with visual styles.

Syntax

public static void DrawHorizontalTrack (System.Drawing.Graphics g, System.Drawing.Rectangle bounds)

Parameters

g
The System.Drawing.Graphics used to draw the track.
bounds
The System.Drawing.Rectangle that specifies the bounds of the track.

Remarks

Before calling this method, you should verify that the value of the TrackBarRenderer.IsSupported property is 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