PowerTools SPREAD for Windows Forms 10.0J
ChangeText(String,Int32,Int32,String,String,Int32,Boolean) メソッド


指定した条件で変更が許可される場合、結果のテキストと位置を返します。(入力が無効であることが原因で)変更が行われなかった場合、Falseを返します。
構文
'Declaration
 
Overloads Function ChangeText( _
   ByVal currText As String, _
   ByVal selStart As Integer, _
   ByVal selLength As Integer, _
   ByVal insertText As String, _
   ByRef resultText As String, _
   ByRef resultCaretPos As Integer, _
   ByVal validateChanges As Boolean _
) As Boolean
'使用法
 
Dim instance As IManageFmtInput
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)

パラメータ

currText
selStart
selLength
insertText
resultText
resultCaretPos
validateChanges
参照

IManageFmtInput インタフェース
IManageFmtInput メンバ
オーバーロード一覧

 

 


© 2004-2017, GrapeCity inc. All rights reserved.