Spread Windows Forms 6.0 Product Documentation
IncrementValue Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win.SuperEdit Namespace > IManageFmtInput Interface : IncrementValue Method


currText
Current text string
position
Position index
incrAmt
Amount to increment
wrapValueFlag
Whether to wrap to multiple lines
initValueIfBlank
Initial value if blank
resultText
Result text string
resultCaretPos
Result input position

Glossary Item Box

Increments or decrements (dependent on sign of "incrAmt") the value represented by the text.

Syntax

Visual Basic (Declaration) 
Function IncrementValue( _
   ByVal currText As String, _
   ByVal position As Integer, _
   ByVal incrAmt As Object, _
   ByVal wrapValueFlag As Boolean, _
   ByVal initValueIfBlank As Object, _
   ByRef resultText As String, _
   ByRef resultCaretPos As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As IManageFmtInput
Dim currText As String
Dim position As Integer
Dim incrAmt As Object
Dim wrapValueFlag As Boolean
Dim initValueIfBlank As Object
Dim resultText As String
Dim resultCaretPos As Integer
Dim value As Boolean
 
value = instance.IncrementValue(currText, position, incrAmt, wrapValueFlag, initValueIfBlank, resultText, resultCaretPos)
C# 
bool IncrementValue( 
   string currText,
   int position,
   object incrAmt,
   bool wrapValueFlag,
   object initValueIfBlank,
   out string resultText,
   out int resultCaretPos
)

Parameters

currText
Current text string
position
Position index
incrAmt
Amount to increment
wrapValueFlag
Whether to wrap to multiple lines
initValueIfBlank
Initial value if blank
resultText
Result text string
resultCaretPos
Result input position

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.