MESCIUS InputMan for ASP.NET 10.0J
SetSelectionLength メソッド
選択するテキストの文字数。
[jQuery対応]選択するテキストの文字数を設定します。
シンタックス
var instance = new GCIM.GcTime();
var value; // Type: any

// パラメータ
var length; //タイプ: number

value = instance.SetSelectionLength(length);
function SetSelectionLength( 
   length : number
) : any;

パラメータ

length
選択するテキストの文字数。
使用例
// GcTextBox2の先頭にGcTextBox1のテキストを追加します。
var start = 0;
var length = 0;
var text = FindIMControl("GcTextBox1").GetText();
FindIMControl("GcTextBox2").SetSelectionLength(length);
FindIMControl("GcTextBox2").SetSelectionStart(start);
FindIMControl("GcTextBox2").SetSelectedText(text);
参照

参照

GcTime タイプ

 

 


© MESCIUS inc. All rights reserved.