ProgressBarControl.Decrement(Int32) Method

Decreases the progress bar's position by a specified value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll


public void Decrement(
    int val
Public Sub Decrement(
    val As Integer


Name Type Description
val Int32

An integer value to be subtracted from the progress bar's position.


Use this method to decrease the progress bar's position by the specified value. The position is represented by the ProgressBarControl.Position property. If the position is less than the RepositoryItemProgressBar.Minimum property value after calling the Decrement method, the position is automatically set to the RepositoryItemProgressBar.Minimum property.

If you need to advance the progress bar's position by a specific value, use the ProgressBarControl.Increment method.

See Also