System.Windows.Forms.ProgressBarRenderer.DrawHorizontalChunks Method

Draws a set of progress bar pieces that fill a horizontal progress bar.

Syntax

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

Parameters

g
The System.Drawing.Graphics used to draw the progress bar.
bounds
The System.Drawing.Rectangle that specifies the bounds to be filled by progress bar pieces.

Remarks

Each progress bar piece drawn by this method spans the height of the bounds parameter. The number of progress bar pieces drawn is determined by the width of bounds and the values returned by the ProgressBarRenderer.ChunkSpaceThickness and ProgressBarRenderer.ChunkThickness properties.

Before using this method, you should verify that the ProgressBarRenderer.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