System.Windows.Forms.TrackBarRenderer.DrawHorizontalTicks Method

Draws the specified number of horizontal track bar ticks with visual styles.

Syntax

public static void DrawHorizontalTicks (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, int numTicks, System.Windows.Forms.VisualStyles.EdgeStyle edgeStyle)

Parameters

g
The System.Drawing.Graphics used to draw the ticks.
bounds
The System.Drawing.Rectangle that specifies the bounds of the ticks.
numTicks
The number of ticks to draw.
edgeStyle
One of the System.Windows.Forms.VisualStyles.EdgeStyle values.

Remarks

Before calling this method, you should verify that the value of the TrackBarRenderer.IsSupported property is true.

If width or height of the bounding rectangle or the number of ticks is less than or equal to zero, or g is null, TrackBarRenderer.DrawHorizontalTicks(System.Drawing.Graphics, System.Drawing.Rectangle, int, System.Windows.Forms.VisualStyles.EdgeStyle) returns without rendering.

Requirements

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