Spread Windows Forms 10.0 Product Documentation
ChangeText(String,Int32,Int32,String,String,Int32,Boolean) Method


Returns the resulting text and position if the change is allowed for the given conditions. If no changes are made (due to invalid input), returns false.
Syntax
'Declaration
 
Overloads Function ChangeText( _
   ByVal currText As String, _
   ByVal selStart As Integer, _
   ByVal selLength As Integer, _
   ByVal insertText As String, _
   ByRef resultText As String, _
   ByRef resultCaretPos As Integer, _
   ByVal validateChanges As Boolean _
) As Boolean
'Usage
 
Dim instance As IManageFmtInput
Dim currText As String
Dim selStart As Integer
Dim selLength As Integer
Dim insertText As String
Dim resultText As String
Dim resultCaretPos As Integer
Dim validateChanges As Boolean
Dim value As Boolean
 
value = instance.ChangeText(currText, selStart, selLength, insertText, resultText, resultCaretPos, validateChanges)
bool ChangeText( 
   string currText,
   int selStart,
   int selLength,
   string insertText,
   out string resultText,
   out int resultCaretPos,
   bool validateChanges
)

Parameters

currText
selStart
selLength
insertText
resultText
resultCaretPos
validateChanges
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

IManageFmtInput Interface
IManageFmtInput Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.