ChangeText Method (IManageFmtInput2)
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
Function ChangeText( _
ByVal As String, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As String, _
ByRef As String, _
ByRef As Integer, _
ByVal As Boolean _
) As Boolean
'Usage
Dim instance As IManageFmtInput2
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 ,
int ,
int ,
string ,
out string ,
out int ,
bool
)
Parameters
- currText
- selStart
- selLength
- insertText
- resultText
- resultCaretPos
- validateChanges
See Also