命名空间: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"
}