MESCIUS InputMan for ASP.NET 10.0J
GetSelectionStart メソッド
[jQuery対応]選択されたテキストの開始点を取得します。
シンタックス
var instance = new GCIM.GcDateTime(container, id);
var value; // Type: number
value = instance.GetSelectionStart();
function GetSelectionStart() : number;

戻り値の型

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

参照

GcDateTime タイプ

 

 


© MESCIUS inc. All rights reserved.