[]
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.
bool ChangeText(string currText, int selStart, int selLength, string insertText, out string resultText, out int resultCaretPos, bool validateChanges)
Function ChangeText(currText As String, selStart As Integer, selLength As Integer, insertText As String, ByRef resultText As String, ByRef resultCaretPos As Integer, validateChanges As Boolean) As Boolean
Type | Name | Description |
---|---|---|
string | currText | The current text |
int | selStart | The selection start |
int | selLength | The selection length |
string | insertText | The insert text |
string | resultText | A return result text |
int | resultCaretPos | A return result caret position |
bool | validateChanges | The validate change |
Type | Description |
---|---|
bool | true if successful;otherwise false |
Returns the resulting text if the change is allowed for the given conditions. If no changes are made (due to invalid input), false is returned.
bool ChangeText(string insertText, out string resultText)
Function ChangeText(insertText As String, ByRef resultText As String) As Boolean
Type | Name | Description |
---|---|---|
string | insertText | The insert text |
string | resultText | A return result text |
Type | Description |
---|---|
bool | true if successful;otherwise false |