跳到主要内容

ApiComment

表示 ApiComment 类。

方法​

方法返回值描述
AddReplyApiComment向批注添加回复。
Deleteboolean从文档中删除当前批注。
GetAuthorNamestring返回批注作者的姓名。
GetClassType"comment"返回 ApiComment 类的类型。
GetPositionObject返回文档中批注的位置。
GetQuoteTextNumber返回当前批注的引用文本。
GetRepliesCountNumber返回批注回复的数量。
GetTextstring返回批注文本。
GetTimeNumber返回批注创建时间戳(当前时区格式)。
GetTimeUTCNumber返回批注创建时间戳(UTC 格式)。
GetUserIdstring返回批注作者的用户 ID。
IsSolvedboolean检查批注是否已解决。
RemoveRepliesApiComment删除指定的批注回复。
SetAuthorNameApiComment设置批注作者的姓名。
SetPosition无设置文档中批注的位置。
SetSolvedApiComment将批注标记为已解决。
SetTextApiComment设置批注文本。
SetTimeApiComment设置批注创建时间戳(当前时区格式)。
SetTimeUTCApiComment设置批注创建时间戳(UTC 格式)。
SetUserIdApiComment设置批注作者的用户 ID。