PowerTools InputMan for ASP.NET 8.0J
GetSelectionStart メソッド
[jQuery対応]選択されたテキストの開始点を取得します。
構文
var instance = new GCIM.GcTime();
var value; // Type: number
value = instance.GetSelectionStart();
function GetSelectionStart() : number;

戻り値

型 : number
開始点。
使用例
// テキストコントロールのオブジェクトを取得 
var gcTextBox = FindIMControl("GcTextBox1");
// 選択されているテキストの開始位置を取得 
var start = gcTextBox.GetSelectionStart();
// 選択されているテキストの長さを取得 
var length = gcTextBox.GetSelectionLength();
// 選択されているテキストを取得 
var text = gcTextBox.GetSelectedText();
参照

GcTime オブジェクト

 

 


© 2005-2015 GrapeCity inc. All rights reserved.