ProgressBarControl.Increment(Int32) Method

Increases the progress bar's current position by a specified value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public void Increment(
    int val
)
Public Sub Increment(
    val As Integer
)

Parameters

Name Type Description
val Int32

An integer value to be added to the progress bar's current position.

Remarks

The Increment method enables you to increase the value of the progress bar by the specified value. The value of the progress bar is represented by the ProgressBarControl.Position property. If the ProgressBarControl.Position property value is greater than the RepositoryItemProgressBar.Maximum property value after an Increment method call, the control's value is automatically set to RepositoryItemProgressBar.Maximum.

Alternatively, if you need to decrease the control's value by a specified value, call the ProgressBarControl.Decrement method.

See Also