如何使用 Google.Apis.Sheets.v4 更新 Google sheet CheckBox?
How to update Google sheet CheckBox using Google.Apis.Sheets.v4?
我正在尝试更新一个具有 CheckBox 数据类型的单元格。有什么方法可以通过 API 将 CheckBox 设置为状态 Checked 吗?找不到任何 C# 示例...
使用 Google 工作表 API 选中或取消选中复选框等同于将单元格值更新为布尔值 true
和 false
。
- 使用方法spreadsheets.values.update
- 将您的请求基于 C# 的精选示例代码
- 我不是 C# 专家,但您请求正文中的值范围应如下所示:
var list = new List<object>() { true };
requestBody.Values = new List<IList<object>> { list };
C#更新值参考:
- Update a Cell with C# and Sheets API v4
- In C# how do I go through a Google Sheets document and write into a specific cell
我正在尝试更新一个具有 CheckBox 数据类型的单元格。有什么方法可以通过 API 将 CheckBox 设置为状态 Checked 吗?找不到任何 C# 示例...
使用 Google 工作表 API 选中或取消选中复选框等同于将单元格值更新为布尔值 true
和 false
。
- 使用方法spreadsheets.values.update
- 将您的请求基于 C# 的精选示例代码
- 我不是 C# 专家,但您请求正文中的值范围应如下所示:
var list = new List<object>() { true };
requestBody.Values = new List<IList<object>> { list };
C#更新值参考:
- Update a Cell with C# and Sheets API v4
- In C# how do I go through a Google Sheets document and write into a specific cell