var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: string value = instance.getText(row, col, sheetArea);
パラメータ
- row
- 行インデックス。
- col
- 列インデックス。
- sheetArea
- シート領域。このパラメーターが指定されていない場合は、viewportにデフォルト設定されます。
戻り値の型
セルの書式付きテキストを返します。
var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: string value = instance.getText(row, col, sheetArea);
//Set values to Text property activeSheet.getCell(0, 0).text("10"); //Set values by calling SetText method activeSheet.setText(1, 0, "10"); //Set values to Value property. activeSheet.getCell(0, 1).value(10); //Set values by calling SetValue method. activeSheet.setValue(1, 1, 10); $("#button1").click(function(){ alert("Obtaining cell values by referring to Text property: " + activeSheet.getCell(0, 0).text() + "\n" + "Obtaining cell values by calling GetText method: " + activeSheet.getText(1, 0) + "\n" + "Obtaining cell values by referring to Value property: " + activeSheet.getCell(0, 1).value() + "\n" + "Obtaining cell values by calling GetValue method: " + activeSheet.getValue(1, 1)); }); //Add button control to page <input type="button" id="button1" value="button1"/>
//Set values to Text property activeSheet.getCell(0, 0).text("10"); //Set values by calling SetText method activeSheet.setText(1, 0, "10"); //Set values to Value property. activeSheet.getCell(0, 1).value(10); //Set values by calling SetValue method. activeSheet.setValue(1, 1, 10); $("#button1").click(function(){ alert("Obtaining cell values by referring to Text property: " + activeSheet.getCell(0, 0).text() + "\n" + "Obtaining cell values by calling GetText method: " + activeSheet.getText(1, 0) + "\n" + "Obtaining cell values by referring to Value property: " + activeSheet.getCell(0, 1).value() + "\n" + "Obtaining cell values by calling GetValue method: " + activeSheet.getValue(1, 1)); }); //Add button control to page <input type="button" id="button1" value="button1"/>