ProgressBar.Step
 
 
 

ProgressBar.Step

Description

Returns or sets the step value as an Integer. The step value is the amount the progress bar will be incremented per increment step. By default, the step value is 10.

Attempting to set the step value to be greater than the maximum value or a negative value will result in an "invalid argument" error.

C# Syntax

// get accessor
Int32 rtn = ProgressBar.Step;
// set accessor
ProgressBar.Step = Int32;

Examples

VBScript Example

dim progressbar
set progressbar = XSIUIToolkit.ProgressBar
progressbar.Maximum = 70
progressbar.Step = 1
progressbar.CancelEnabled = false
progressbar.Visible= true
for i = 1 to 60
        progressbar.Caption = "step" & i
        progressbar.Increment 1
next