ProgressBarControl.Position Property

Gets or sets the progress bar position.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(0)]
[Bindable(false)]
public virtual int Position { get; set; }
<DXCategory("Appearance")>
<DefaultValue(0)>
<Bindable(False)>
Public Overridable Property Position As Integer

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.

See Also