System.Windows.Forms.ProgressBar.Step Property

Gets or sets the amount by which a call to the ProgressBar.PerformStep method increases the current position of the progress bar.

Syntax

[System.ComponentModel.DefaultValue(10)]
public int Step { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use the ProgressBar.Step property to specify the amount that each completed task in an operation changes the value of the progress bar. For example, if you are copying a group of files, you might want to set the value of the ProgressBar.Step property to 1 and the value of the ProgressBar.Maximum property to the total number of files to copy. When each file is copied, you can call the ProgressBar.PerformStep method to increment the progress bar by the value of the ProgressBar.Step property. If you want to have more flexible control of the value of the progress bar, you can use the ProgressBar.Increment(int) method or set the value of the ProgressBar.Value property directly.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0