[]
        
(Showing Draft Content)

FarPoint.Win.SuperEdit.IManageFmtInput.ChangeText

ChangeText Method

ChangeText(string, int, int, string, out string, out int, bool)

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.

Declaration
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
Parameters
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

Returns
Type Description
bool

true if successful;otherwise false

ChangeText(string, out string)

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.

Declaration
bool ChangeText(string insertText, out string resultText)
Function ChangeText(insertText As String, ByRef resultText As String) As Boolean
Parameters
Type Name Description
string insertText

The insert text

string resultText

A return result text

Returns
Type Description
bool

true if successful;otherwise false