Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.SuperEdit Namespace / IManageFmtInput Interface / ChangeText Method / ChangeText(String,Int32,Int32,String,String,Int32,Boolean) Method


In This Topic
    ChangeText(String,Int32,Int32,String,String,Int32,Boolean) Method
    In This Topic
    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)

    Parameters

    currText
    selStart
    selLength
    insertText
    resultText
    resultCaretPos
    validateChanges
    See Also