从客户端添加/删除评论
Contents
[
Hide
]
本主题讨论在 Aspose.Cells.GridWeb 控件中从客户端添加和删除评论。
Aspose.Cells GridWeb 现在支持从客户端添加和删除评论。为此,API 提供了“addcomments”和“delcomments”功能。以下代码片段演示了在 GridWeb 中从客户端添加和删除注释。
示例代码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |