在工作表中插入一个对象(例如:https://developers.google.com/apps-script/reference/spreadsheet/sheet#insertImage(String,Integer,Integer)):
var obj = sheet.insert{ObjectType}(args.);
您可以在表格中调用图表:
var chart = sheet.getCharts()[0].modify().{params}.build;
可以调用docs中的对象:
docs.getBody().findElement(DocumentApp.ElementType.{object type}, null);
在表格中查找对象的等价物是什么,即是否存在类似于文档的gsheets dom模型?或者是通过gAppscript无法访问的非图表对象?
//get objects in sheet
var obj2 = sheet.getObject()[0]
//error, method doesn't exist
//
//get objects near a range
var obj3 = sheet.getRange(x,y).getObject()
//error