Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ProgressBarControl.Increment(Int32) Method

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.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