[]
        
(Showing Draft Content)

FarPoint.Win.SuperEdit.IManageFmtInput.CharInput

CharInput Method

CharInput(int, char, string, int, int, out string, out int, bool)

Returns the resulting text and position if the input character is allowed under given conditions. If not allowed, returns false.

Declaration
bool CharInput(int inputKey, char inputChar, string currText, int selStart, int selLength, out string resultText, out int resultCaretPos, bool overwriteMode)
Function CharInput(inputKey As Integer, inputChar As Char, currText As String, selStart As Integer, selLength As Integer, ByRef resultText As String, ByRef resultCaretPos As Integer, overwriteMode As Boolean) As Boolean
Parameters
Type Name Description
int inputKey

The key need check.

char inputChar

The character need to check.

string currText

The source string need to check.

int selStart

The start index should be check.

int selLength

The length should be check.

string resultText

The result text.

int resultCaretPos

The position of result text.

bool overwriteMode

The flag to check with digit or not(true not allow check with digit).

Returns
Type Description
bool

Return true if the input character is allowed under given conditions;otherwise, false.