ProgressBarControl.Position Property
Gets or sets the progress bar position.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v22.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[Bindable(false)]
[DefaultValue(0)]
[DXCategory("Appearance")]
public virtual int Position { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | 0 | The progress bar’s current position. |
Remarks
The Position property specifies the progress that the application has made toward completing a specific operation. The available range of values the Position property can accept is determined by the RepositoryItemProgressBar.Minimum and RepositoryItemProgressBar.Maximum properties.
There are a number of ways to modify the value displayed by the ProgressBarControl other than changing the Position property directly. You can use the RepositoryItemProgressBar.Step property to specify a value to increment the Position property by, and then call the ProgressBarControl.PerformStep method. You can also use the ProgressBarControl.Increment and ProgressBarControl.Decrement methods to correspondingly increase and decrease the progress bar’s position by a specified value.
Changing the Position property value at runtime raises the RepositoryItem.EditValueChanging and RepositoryItem.EditValueChanged events.