ExcelScript.CommentReply interface

表示工作簿中的批注答复。

方法

delete()

删除批注回复。

getAuthorEmail()

获取批注回复作者的电子邮件。

getAuthorName()

获取批注回复作者的姓名。

getContent()

批注回复的内容。 字符串为纯文本。

getContentType()

答复的内容类型。

getCreationDate()

获取批注回复的创建时间。

getId()

指定批注回复标识符。

getLocation()

获取此批注回复所在的单元格。

getMentions()

实体 (例如注释中提到的人员) 。

getParentComment()

获取此答复的父批注。

getResolved()

批注回复状态。 值 true 表示答复处于已解决状态。

getRichContent()

丰富的注释内容 (例如注释) 中的提及。 此字符串不应显示给最终用户。 您的外接程序应仅使用它来分析丰富的注释内容。

setContent(content)

批注回复的内容。 字符串为纯文本。

updateMentions(contentWithMentions)

使用特殊格式的字符串和提及列表汇报注释内容。

方法详细信息

delete()

删除批注回复。

delete(): void;

返回

void

getAuthorEmail()

获取批注回复作者的电子邮件。

getAuthorEmail(): string;

返回

string

getAuthorName()

获取批注回复作者的姓名。

getAuthorName(): string;

返回

string

getContent()

批注回复的内容。 字符串为纯文本。

getContent(): string;

返回

string

getContentType()

答复的内容类型。

getContentType(): ContentType;

返回

getCreationDate()

获取批注回复的创建时间。

getCreationDate(): Date;

返回

Date

getId()

指定批注回复标识符。

getId(): string;

返回

string

getLocation()

获取此批注回复所在的单元格。

getLocation(): Range;

返回

getMentions()

实体 (例如注释中提到的人员) 。

getMentions(): CommentMention[];

返回

getParentComment()

获取此答复的父批注。

getParentComment(): Comment;

返回

getResolved()

批注回复状态。 值 true 表示答复处于已解决状态。

getResolved(): boolean;

返回

boolean

getRichContent()

丰富的注释内容 (例如注释) 中的提及。 此字符串不应显示给最终用户。 您的外接程序应仅使用它来分析丰富的注释内容。

getRichContent(): string;

返回

string

setContent(content)

批注回复的内容。 字符串为纯文本。

setContent(content: string): void;

参数

content

string

返回

void

updateMentions(contentWithMentions)

使用特殊格式的字符串和提及列表汇报注释内容。

updateMentions(contentWithMentions: CommentRichContent): void;

参数

contentWithMentions
ExcelScript.CommentRichContent

批注的内容。 它包含一个特殊格式的字符串和一个提及列表,这些提及将在 Excel 显示时解析为字符串。

返回

void