You are here: Symbol Reference > Stimulsoft.Report.Wpf Namespace > MathUtil Class > MathUtil Methods > IncrementDecrementNumber Method
Stimulsoft Reports Class Reference
ContentsIndexHome
PreviousUpNext
MathUtil.IncrementDecrementNumber Method

Validates the string passed by parsing it as int and checking if it is inside the bounds specified then the resulting int will be incremented/decremented

Syntax
C++
C#
Visual Basic
public: int IncrementDecrementNumber( string num, int minValue, int maxVal, bool increment );
Parameters
Parameters 
Description 
num 
The string to parse as int and increment/decrement 
minValue 
The min value for the bound checking 
maxVal 
The max value for the bounds checking 
increment 
Pass true to increment and false to decrement 
Returns

Returns the new number incremented or decremeneted

Made with Doc-O-Matic.
What do you think about this topic? Send feedback!
Copyright (c) 2017. All rights reserved.