var instance = new GC.Spread.Sheets.Bindings.CellBindingSource(source); var returnValue; // Type: any // パラメータ var path; //タイプ: string var value; //タイプ: Object returnValue = instance.setValue(path, value);
パラメータ
- path
- 行インデックス。
- value
- 設定する値。
var instance = new GC.Spread.Sheets.Bindings.CellBindingSource(source); var returnValue; // Type: any // パラメータ var path; //タイプ: string var value; //タイプ: Object returnValue = instance.setValue(path, value);
// 次のサンプルコードは、名前の値を設定します。 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); source.setValue("name", "test"); activeSheet.resumePaint(); activeSheet.repaint();
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); source.setValue("name", "test"); activeSheet.resumePaint(); activeSheet.repaint();