- 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.
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.DrawVerticalTicks(System.Drawing.Graphics, System.Drawing.Rectangle, int, System.Windows.Forms.VisualStyles.EdgeStyle) returns without rendering.
Before calling this method, you should verify that the value of the TrackBarRenderer.IsSupported property is true.