Skip to main content
A newer version of this page is available. .

ProgressBarControl.Increment(Int32) Method

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public void Increment(
    int val
)

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