从客户端添加/删除评论

Contents
[ ]

Aspose.Cells GridWeb 现在支持从客户端添加和删除评论。为此,API 提供了“addcomments”和“delcomments”功能。以下代码片段演示了在 GridWeb 中从客户端添加和删除注释。

示例代码

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
<script>
function addComment() {
gridwebinstance.getByIndex(0).addcomments({note:'hello',author:'aspose'});
}
function removeComment() {
gridwebinstance.getByIndex(0).delcomments();
}
</script>