从客户端添加/删除评论

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>