Spread Windows Forms 6.0 Product Documentation
CharInput Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win.SuperEdit Namespace > IManageFmtInput Interface : CharInput Method


inputKey
inputChar
currText
selStart
selLength
resultText
resultCaretPos
overwriteMode

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Function CharInput( _
   ByVal inputKey As Integer, _
   ByVal inputChar As Char, _
   ByVal currText As String, _
   ByVal selStart As Integer, _
   ByVal selLength As Integer, _
   ByRef resultText As String, _
   ByRef resultCaretPos As Integer, _
   ByVal overwriteMode As Boolean _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As IManageFmtInput
Dim inputKey As Integer
Dim inputChar As Char
Dim currText As String
Dim selStart As Integer
Dim selLength As Integer
Dim resultText As String
Dim resultCaretPos As Integer
Dim overwriteMode As Boolean
Dim value As Boolean
 
value = instance.CharInput(inputKey, inputChar, currText, selStart, selLength, resultText, resultCaretPos, overwriteMode)
C# 
bool CharInput( 
   int inputKey,
   char inputChar,
   string currText,
   int selStart,
   int selLength,
   out string resultText,
   out int resultCaretPos,
   bool overwriteMode
)

Parameters

inputKey
inputChar
currText
selStart
selLength
resultText
resultCaretPos
overwriteMode

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.