C# 如何在谷歌电子表格中插入标题?
我正在尝试在电子表格中添加一个arraylist作为标题。我已经参考了谷歌的API,我喜欢能够插入行。但现在我需要一次插入行数组。可能吗?请帮忙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
// 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#,但我看到有可用的文档。对尝试进行编码,如果卡住,请发回。