NPOI 1.2.4 忽略 IComment.Visible 值
我试图在单元格上设置注释,但无论我是否设置 IComment.Visible = false
,它始终可见。在 NPOI 1.2.3 中一切都按预期工作,但在 NPOI 1.2.4 中出现了此问题。下面是一个代码片段。谢谢。
IComment cellComment = patriarch1.CreateCellComment(new HSSFClientAnchor(0, 0, 0, 0, 4, 2, 14, 5));
HSSFRichTextString richText = new HSSFRichTextString("Some notes on the cell...");
richText.ApplyFont(commentFont);
cellComment.String = richText;
cell.CellComment = cellComment;
cellComment.Visible = false; // ignored
I am trying to set a comment on a cell, but it is always visible no matter if I set IComment.Visible = false
. In NPOI 1.2.3 everything worked as expected but in NPOI 1.2.4 this issue occured. Here's a code snippet below. Thanks.
IComment cellComment = patriarch1.CreateCellComment(new HSSFClientAnchor(0, 0, 0, 0, 4, 2, 14, 5));
HSSFRichTextString richText = new HSSFRichTextString("Some notes on the cell...");
richText.ApplyFont(commentFont);
cellComment.String = richText;
cell.CellComment = cellComment;
cellComment.Visible = false; // ignored
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 NPOI 1.2.4 中的一个错误。 1.2.5 已经修复了
It's a bug in NPOI 1.2.4. It's already fixed in 1.2.5