GrapeCity MultiRow Windows Forms Documentation
Increment Method


The amount by which to increment the current position of the progress bar.
Advances the current position of the progress bar by the specified amount.
Syntax
Public Sub Increment( _
   ByVal amount As Integer _
) 
Dim instance As ProgressBarCell
Dim amount As Integer
 
instance.Increment(amount)
public void Increment( 
   int amount
)

Parameters

amount
The amount by which to increment the current position of the progress bar.
Exceptions
ExceptionDescription
System.InvalidOperationException

The Cell.FormattedValue is null.

-or-

This method is invoked at design time.

Remarks
The Increment method enables you to increment the value of the progress bar by a specific amount. This method of incrementing the progress bar is similar to using the Step property with the PerformStep method. The Cell.Value property specifies the current position of the ProgressBarCell. If, after calling the Increment method, the Cell.Value property is greater than the value of the Maximum property, the Cell.Value property remains at the value of the Maximum property. If, after calling the Increment method with a negative value specified in the amount parameter, the Cell.Value property is less than the value of the Minimum property, the Cell.Value property remains at the value of the Minimum property.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ProgressBarCell Class
ProgressBarCell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.