命名空间:microsoft.graph
表示工作簿中的注释。
方法
| 方法 | 返回类型 | Description |
|---|---|---|
| List | workbookComment 集合 | 获取 workbookComment 对象集合。 |
| 创建 | workbookComment | 创建新的 workbookComment 对象。 |
| Get | workbookComment | 读取 workbookComment 对象的属性和关系。 |
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| cellAddress | String | 注释所在的单元格。 地址值为 A1 样式,其中包含工作表引用 (例如 Sheet1!A1 ,) 。 只读。 |
| content | String | 显示给最终用户的字符串注释的内容。 |
| contentType | String | 批注的内容类型。 支持的值为: plain、 mention。 |
| id | String | 注释的唯一标识符。 只读。 |
| 提及 | workbookCommentMention 集合 | 一个集合,其中包含注释中提到的所有人员。 当 contentType 为 plain时,此属性为空数组。 只读。 |
| richContent | String | 注释的丰富内容 (例如,注释内容带有提及,其中第一个提及的实体的 ID 属性为 , 0 第二个实体的 ID 属性 1 为) 。 当 contentType 为 plain时,此属性为空。 只读。 |
关系
| 关系 | 类型 | 说明 |
|---|---|---|
| 答复 | workbookCommentReply 集合 | 批注的答复列表。 只读。 可为 Null。 |
| task | workbookDocumentTask | 与批注关联的任务。 只读。 可为 Null。 |
JSON 表示形式
以下 JSON 表示形式显示了资源类型。
{
"cellAddress": "String",
"content": "String",
"contentType": "String",
"id": "String (identifier)",
"mentions": [{ "@odata.type": "microsoft.graph.workbookCommentMention" }],
"richContent": "String"
}