PowerTools InputMan for ASP.NET 8.0J
SetSelectionLength メソッド
選択するテキストの文字数。
[jQuery対応]選択するテキストの文字数を設定します。
構文
var instance = new GCIM.GcMask(container, id);
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);
参照

GcMask オブジェクト

 

 


© 2005-2015 GrapeCity inc. All rights reserved.