Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在谷歌电子表格中插入标题?_C#_Google Apps Script - Fatal编程技术网

C# 如何在谷歌电子表格中插入标题?

C# 如何在谷歌电子表格中插入标题?,c#,google-apps-script,C#,Google Apps Script,我正在尝试在电子表格中添加一个arraylist作为标题。我已经参考了谷歌的API,我喜欢能够插入行。但现在我需要一次插入行数组。可能吗?请帮忙 // Create a local representation of the new row. ListEntry row = new ListEntry(); row.Elements.Add(new ListEntry.Custom() { LocalName = "firstname", Value = "Joe" }); row

我正在尝试在电子表格中添加一个arraylist作为标题。我已经参考了谷歌的API,我喜欢能够插入行。但现在我需要一次插入行数组。可能吗?请帮忙

 // Create a local representation of the new row.
  ListEntry row = new ListEntry();
  row.Elements.Add(new ListEntry.Custom() { LocalName = "firstname", Value = "Joe" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "lastname", Value = "Smith" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "age", Value = "26" });
  row.Elements.Add(new ListEntry.Custom() { LocalName = "height", Value = "176" });

  // Send the new row to the API for insertion.
  service.Insert(listFeed, row);

无法使用listfeed插入多行。请改用cellfeed。

无法使用listfeed插入多行。请改用cellfeed。

Hii mandel感谢您的回复。由于我是编程新手,而且我几乎没有C#.Net的经验,所以如果你能用一小段代码作为例子来解释我的话。我不使用C#,但我看到有可用的文档。对尝试进行编码,如果卡住,请发回。嗨,曼德尔,谢谢你的回复。由于我是编程新手,而且我几乎没有C#.Net的经验,所以如果你能用一小段代码作为例子来解释我的话。我不使用C#,但我看到有可用的文档。对尝试进行编码,如果卡住,请发回。