var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: string // パラメータ var row; //タイプ: number var col; //タイプ: number value = instance.getBindingPath(row, col);
パラメータ
- row
- 行インデックス。
- col
- 列インデックス。
戻り値の型
指定したセルの、セルレベル連結の連結パスを返します。
var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: string // パラメータ var row; //タイプ: number var col; //タイプ: number value = instance.getBindingPath(row, col);
// 次のサンプルコードは、getBindingPathメソッドを使用します。 var person = {name: "Wang feng", age: 25, address: {postcode: "710075"}}; var source = new GC.Spread.Sheets.Bindings.CellBindingSource(person); activeSheet.setBindingPath(0, 0, "name"); activeSheet.setBindingPath(1, 1, "age"); activeSheet.setBindingPath(3, 3, "address.postcode"); activeSheet.setDataSource(source); alert(activeSheet.getBindingPath(0, 0, GC.Spread.Sheets.SheetArea.viewport));
var person = {name: "Wang feng", age: 25, address: {postcode: "710075"}}; var source = new GC.Spread.Sheets.Bindings.CellBindingSource(person); activeSheet.setBindingPath(0, 0, "name"); activeSheet.setBindingPath(1, 1, "age"); activeSheet.setBindingPath(3, 3, "address.postcode"); activeSheet.setDataSource(source); alert(activeSheet.getBindingPath(0, 0, GC.Spread.Sheets.SheetArea.viewport));